UserViewModel

From Solution Explorer, right-click to the /ViewModels/ folder, add a new UserViewModel.cs C# class, and fill it with the following content:

using Newtonsoft.Json;

namespace TestMakerFreeWebApp.ViewModels
{
[JsonObject(MemberSerialization.OptOut)]
public class UserViewModel
{
#region Constructor
public UserViewModel()
{

}
#endregion

#region Properties
public string UserName { get; set; }
public string Password { get; set; }
public string Email { get; set; }
public string DisplayName { get; set; }
#endregion
}
}

The view model is also pretty standard; it just contains the fields that we need to create the new user entity and save it to the database.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.226.120