public IdentityController(BlogcodefirstContext context, IConfiguration configuration, ITokenService tokenService, IUserService userService)
 {
     dbContext     = context;
     conf          = configuration;
     _tokenService = tokenService;
     _userService  = userService;
 }
Exemple #2
0
 public AuthController(IConfiguration configuration, ITokenService tokenService, BlogcodefirstContext context)
 {
     conf          = configuration;
     _tokenService = tokenService;
     dbContext     = context;
 }
Exemple #3
0
 public AuthAttribute(BlogcodefirstContext _context, ITokenService tokenService, IUserService userService)
 {
     dbContext     = _context;
     _tokenService = tokenService;
     _userService  = userService;
 }
Exemple #4
0
 public UserService(BlogcodefirstContext context)
 {
     _context = context;
 }