public UsersController(UserServiceInterface userService, IMapper mapper)
 {
     _userService = userService;
     _userManager = _userService.GetUserManager();
     _roleManager = _userService.GetRoleManager();
     _mapper      = mapper;
 }
 public AccountController(
     UserServiceInterface userService,
     SignInManager <ApplicationUser> signInManager,
     MainDbContext db, ILogger <AccountController> logger,
     IMapper mapper
     )
 {
     _userService   = userService;
     _userManager   = userService.GetUserManager();
     _signInManager = signInManager;
     _db            = db;
     _logger        = logger;
     _mapper        = mapper;
 }
Example #3
0
 public UserController()
 {
     userService = new UserService();
 }
Example #4
0
 public UserController(UserServiceInterface userService)
 {
     this.userService = userService;
 }
 public RolesController(UserServiceInterface userService)
 {
     _roleManager = userService.GetRoleManager();
 }