UserController

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

using System;using System.Threading.Tasks;using Microsoft.AspNetCore.Mvc;using Microsoft.AspNetCore.Identity;using Microsoft.Extensions.Configuration;using TestMakerFreeWebApp.ViewModels;using TestMakerFreeWebApp.Data;using Mapster;namespace TestMakerFreeWebApp.Controllers{    public class UserController : BaseApiController    {        #region Constructor        public UserController(            ApplicationDbContext context,            RoleManager<IdentityRole> roleManager,            UserManager<ApplicationUser> userManager,            IConfiguration configuration            )            : base(context, roleManager, userManager, configuration) {                                                      }        #endregion #region ...

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.