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; }
public UserController() { userService = new UserService(); }
public UserController(UserServiceInterface userService) { this.userService = userService; }
public RolesController(UserServiceInterface userService) { _roleManager = userService.GetRoleManager(); }