public async Task <ActionResult <IEnumerable <DepartmentDTO> > > Get() { IEnumerable <DepartmentDTO> res = await _searchService.Get(x => x.InstanceID == this.InstanceID && x.company == this.IdentityWorkID && x.Active, this.IdentityWorkID, new string[] { "Area" }, new DepartmentValidator(), _mapper); return(Ok(res)); }
public async Task <ActionResult <IEnumerable <EmployeeDTO> > > Get() { IEnumerable <EmployeeDTO> res = await _searchService.Get(x => x.InstanceID == this.InstanceID && x.company == this.IdentityWorkID && x.Active, this.IdentityWorkID, new string[] { "JobPosition", "Department" }, new EmployeeValidator(), _mapper); res.AsParallel().ForAll(emp => emp.Antiquity = new CalculateDateDifference(DateTime.Now, emp.EntryDate).ToStringColaboratorSpanish()); return(Ok(res)); }
public async Task <ActionResult <IEnumerable <AnualEmploymentSubsidyDTO> > > Get() { IEnumerable <AnualEmploymentSubsidyDTO> res = await _searchService.Get(x => x.InstanceID == this.InstanceID && x.company == this.IdentityWorkID && x.Active, this.IdentityWorkID, new string[] { }, new AnualEmploymentSubsidyValidator(), _mapper); return(Ok(res)); }
public async Task <ActionResult <IEnumerable <MonthlyIncomeTaxDTO> > > Get() { IEnumerable <MonthlyIncomeTaxDTO> res = await _searchService.Get(x => x.InstanceID == this.InstanceID && x.company == this.IdentityWorkID && x.Active, this.IdentityWorkID, new string[] { }, new MonthlyIncomeTaxValidator(), _mapper); return(Ok(res)); }
public async Task <ActionResult <IEnumerable <InfonavitInsuranceDTO> > > Get() { IEnumerable <InfonavitInsuranceDTO> res = await _searchService.Get(x => x.Active, this.IdentityWorkID, new string[] { }, new InfonavitInsuranceValidator(), _mapper); return(Ok(res)); }
public async Task <ActionResult <IEnumerable <IMSSEmployerTableDTO> > > Get() { return(Ok(await _searchService.Get(x => x.InstanceID == this.InstanceID && x.company == this.IdentityWorkID && x.Active, this.IdentityWorkID, new string[] { }, new IMSSEmployerTableValidator(), _mapper))); }