public ParametroController(IParametroService objParamService, IParametroTempService objParamTempService, ICatalogoService objCatalogoService, IEventosTempService objEventService, ISupervisorTempService objSupervisorService) { paramService = objParamService; paramTempService = objParamTempService; catalogoService = objCatalogoService; eventService = objEventService; supervisorService = objSupervisorService; }
//Constructores public ParametroController() { paramService = paramService ?? new ParametroService(); paramTempService = paramTempService ?? new ParametroTempService(); catalogoService = catalogoService ?? new CatalogoService(); eventService = eventService ?? new EventosTemporalService(); supervisorService = supervisorService ?? new SupervisorTempService(); }
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; }
//Constructores public SupervisorController() { supervisorService = supervisorService ?? new SupervisorService(); supervisorTempService = supervisorTempService ?? new SupervisorTempService(); }