public List <InquiryIndexDTO> GetInquirerInquiryIndices(long periodId, string inquirerEmployeeNo) { List <JobIndex> inquiryIndices = inquiryService.GetInquiryIndices(new EmployeeId(inquirerEmployeeNo, new PeriodId(periodId))); var res = inquiryIndices.Select(i => new InquiryIndexDTO { JobIndexId = i.Id.Id, JobIndexName = i.Name, ActionCodes = new List <int> { (int)ActionType.FillInquiryForm }, }).ToList(); foreach (var inquiryIndexDTO in res) { inquiryIndexDTO.IsInquired = inquiryJobIndexPointRepository.IsAllInquiryJobIndexPointsHasValue(new EmployeeId(inquirerEmployeeNo, new PeriodId(periodId)), inquiryIndexDTO.JobIndexId); inquiryIndexDTO.Status = inquiryIndexDTO.IsInquired ? "کامل شده" : "ناقص"; } return(res); }