コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        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));
        }
コード例 #5
0
        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));
        }
コード例 #6
0
 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)));
 }