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.