public UserService(DataContext context, UserManager userManager, RoleManager roleManager, ISupervisorUserAgentService supervisorUserAgentService, IConfiguration configuration, SignInManager signInManager, IEmailService emailSender, IFileService fileService, IMapper mapper, IValidator <SaveUserDto> fluentValidatorUser, IValidator <LoginDto> fluentValidatorLogin, IValidator <CreateUserDto> fluentValidatorCreateUser, IValidator <ResetPassword> fluentValidationResetPassword, IAspNetUserRolesService rolesService) { _context = context; _userManager = userManager; _roleManager = roleManager; _configuration = configuration; _signInManager = signInManager; _emailSender = emailSender; _fileService = fileService; _mapper = mapper; _fluentValidatorUser = fluentValidatorUser; _fluentValidatorLogin = fluentValidatorLogin; _fluentValidatorCreateUser = fluentValidatorCreateUser; _fluentValidationResetPassword = fluentValidationResetPassword; _rolesService = rolesService; _supervisorUserAgentService = supervisorUserAgentService; }
public AspNetUserRolesController( IAspNetRolesService aspNetRolesService, IAspNetUserRolesService aspNetUserRoles) { _aspNetRolesService = aspNetRolesService; _aspNetUserRoles = aspNetUserRoles; }
public AuthManagementController(ILogService logService, UserManager <IdentityUser> userManager, IOptionsMonitor <JwtConfig> optionsMonitor, RoleManager <IdentityRole> roleManager, IAspNetUserRolesService aspNetUserRolesService, IClaimsService claimsService) { _userManager = userManager; _jwtConfig = optionsMonitor.CurrentValue; _roleManager = roleManager; _aspNetUserRolesService = aspNetUserRolesService; _claimsService = claimsService; _logService = logService; }
public AccountController() { usuarioAreaService = usuarioAreaService ?? new UsuarioAreaService(); usuarioEmpresaService = usuarioEmpresaService ?? new UsuarioEmpresaService(); moduloRolService = moduloRolService ?? new ModuloRolService(); catalagoService = catalagoService ?? new CatalogoService(); directorioActivo = directorioActivo ?? new LDAP(); objInjUserRol = objInjUserRol ?? new AspNetUserRolesService(); }
public IHttpActionResult CreateRolesForUser([FromBody] RolesToUser model) { objInj = objInj ?? new AspNetUserRolesService(); var currentAreas = objInj.GetAll(c => c.UserId == model.id, null, includes: c => c.AspNetRoles); var denoms = new List <int>(currentAreas.Select(c => c.IDAspNetUserRol)); objInj.CreateAndRemove(model.EnrolledRoles, denoms); return(Ok()); }
public SupervisorController(ISupervisorService objSupervisorService, ISupervisorTempService objSupervisorTempService, IUsuarioEmpresaService objUsuarioAreaService, IEmpresaAreasCentroCostoService eacc, IUsuariosPorRoleService usrRol, IAspNetUserRolesService ue, IUserService userServ, IUsuarioAreaService uas) { objInj = ue; supervisorService = objSupervisorService; supervisorTempService = objSupervisorTempService; usuarioEmpresaService = objUsuarioAreaService; empresaAreaCentroCostoService = eacc; usuarioRol = usrRol; userService = userServ; usuarioAreaService = uas; }
public AccountController(IUsuarioAreaService svcusuarioAreaService, IUsuarioEmpresaService svcusuarioEmpresaService, IModuloRolService svcmoduloRolService, ICatalogoService catServ, ILDAP dau, IAspNetUserRolesService userRole) { usuarioAreaService = svcusuarioAreaService; usuarioEmpresaService = svcusuarioEmpresaService; moduloRolService = svcmoduloRolService; catalagoService = catServ; directorioActivo = dau; objInjUserRol = userRole; }
/// <summary> /// Este contructor se implemento, con un intento para resolver el problema del IIS /// en el servidor de banistmo 10.71.27.116 /// </summary> public UserController() { userService = new UserService(); reporteSrv = new ReporteService(); rrmService = new ReporteRolesMenuService(); usuarioAreaService = new UsuarioAreaService(); usuarioEmpresaService = new UsuarioEmpresaService(); catalagoService = new CatalogoService(); directorioactivo = new LDAP(); usrRolService = new UsuariosPorRolService(); AspNetUserRolesService = new AspNetUserRolesService(); rolService = rolService ?? new RolService(); areaOperativaService = areaOperativaService ?? new AreaOperativaService(); RegConSrv = new RegistroControlService(); }
public UserController(IUserService usr, IReporteService reporte, IReporteRolesMenuService rrmSrv, IUsuarioAreaService usrAreaSrv, IUsuarioEmpresaService usrEmpSrv, ICatalogoService catSrv, ILDAP dau, IUsuariosPorRoleService usrRol, IAspNetUserRolesService aspNetUserRolesServ, IAreaOperativaService area, IRegistroControlService RegControlSrv) { userService = usr; reporteSrv = reporte; rrmService = rrmSrv; usuarioAreaService = usrAreaSrv; usuarioEmpresaService = usrEmpSrv; catalagoService = catSrv; directorioactivo = dau; usrRolService = usrRol; AspNetUserRolesService = aspNetUserRolesServ; rolService = rolService ?? new RolService(); areaOperativaService = area; RegConSrv = RegControlSrv; }
public RoleController(IAspNetUserRolesService serv, IUserService userv) { objInj = serv; userService = userv; }
public UserRolesController(IAspNetUserRolesService ue) { objInj = ue; }
public UserRolesController() { objInj = objInj ?? new AspNetUserRolesService(); }