Beispiel #1
0
 public LUsuario(
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     RoleManager <IdentityRole> roleManager,
     ApplicationDbContext context)
 {
     _userManager   = userManager;
     _roleManager   = roleManager;
     _signInManager = signInManager;
     _context       = context;
     _usersRole     = new LUsuariosRoles();
 }
 public AddUsuarioModel(
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     RoleManager <IdentityRole> roleManager,
     ApplicationDbContext context,
     IWebHostEnvironment environment)
 {
     _context       = context;
     _userManager   = userManager;
     _signInManager = signInManager;
     _roleManager   = roleManager;
     _environment   = environment;
     _userRoles     = new LUsuariosRoles();
     _uploadimage   = new LUploadimage();
 }