public UserController(UserManager <ManageUser> userManager,
                       RoleManager <IdentityRole> roleManager,
                       ManageAppDbContext context, IConfiguration configuration)
 {
     _userManager = userManager;
     _roleManager = roleManager;
     _context     = context;
 }
        public UserController(UserManager <ManageUser> userManager,
                              RoleManager <IdentityRole> roleManager,
                              ManageAppDbContext context, IConfiguration configuration, ILogger <UserController> logger, IEmailSender emailSender,
                              IViewRenderService viewRenderService)
        {
            _userManager = userManager;
            _roleManager = roleManager;
            _context     = context;

            _logger = logger ?? throw new ArgumentNullException(nameof(logger));

            _emailSender       = emailSender;
            _viewRenderService = viewRenderService;
        }