Exemplo n.º 1
0
 public UsersController(UserServices services, FilteringServices filteringServices, UserManager <User> userManager, IOptions <RoleNamesOptions> roleNamesOptions)
 {
     _services          = services;
     _filteringServices = filteringServices;
     _userManager       = userManager;
     _roleNamesOptions  = roleNamesOptions.Value;
 }
Exemplo n.º 2
0
 public Seed(AppDbContext context, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, IOptions <RoleNamesOptions> roleNamesOptions)
 {
     _context          = context;
     _userManager      = userManager;
     _roleManager      = roleManager;
     _roleNamesOptions = roleNamesOptions.Value;
 }