Exemple #1
0
 public UserController(IUserUseCases userUseCases, ISendMailUseCases sendMailUseCases, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, IMapper mapper)
 {
     _userUseCases        = userUseCases;
     _sendMailUseCases    = sendMailUseCases;
     _httpContextAccessor = httpContextAccessor;
     _configuration       = configuration;
     _mapper = mapper;
 }
Exemple #2
0
 public UserController(
     IUserUseCases userUseCases,
     SignInManager <User> signInManager,
     RoleManager <IdentityRole> roleManager,
     UserManager <User> userManager,
     IConfiguration configuration)
 {
     _userUseCases  = userUseCases;
     _signInManager = signInManager;
     _roleManager   = roleManager;
     _userManager   = userManager;
     _configuration = configuration;
 }
Exemple #3
0
 public UserController(ILogger <UserController> logger, IUserUseCases userUseCases)
 {
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
     _userUseCases = userUseCases ?? throw new ArgumentNullException(nameof(userUseCases));
 }
Exemple #4
0
 public LoginController(IUserUseCases userUseCases, IConfiguration configuration)
 {
     _userUseCases  = userUseCases;
     _configuration = configuration;
 }