change paginated to list

This commit is contained in:
2026-01-13 18:31:10 +03:30
parent 8850328fd4
commit d179c90c48
5 changed files with 12 additions and 9 deletions

View File

@@ -2285,7 +2285,7 @@ public class RollCallRepository : RepositoryBase<long, RollCall>, IRollCallRepos
return res;
}
public async Task<PagedResult<RollCallCaseHistoryDetail>> GetCaseHistoryDetails(long workshopId, string titleId,
public async Task<List<RollCallCaseHistoryDetail>> GetCaseHistoryDetails(long workshopId, string titleId,
RollCallCaseHistorySearchModel searchModel)
{
var query = _context.RollCallEmployeesStatus
@@ -2344,7 +2344,7 @@ public class RollCallRepository : RepositoryBase<long, RollCall>, IRollCallRepos
.Where(x => x.WorkshopId == workshopId
&& employeeIds.Contains(x.EmployeeId)).ToListAsync();
var res = new PagedResult<RollCallCaseHistoryDetail>();
var res = new List<RollCallCaseHistoryDetail>();
foreach (var date in dates)
{
var rollCallInDate = rollCalls
@@ -2379,12 +2379,10 @@ public class RollCallRepository : RepositoryBase<long, RollCall>, IRollCallRepos
PersonnelCode = personnelCodes.FirstOrDefault(y => y.EmployeeId == employeeId)?.PersonnelCode
.ToString(),
};
res.List.Add(item);
res.Add(item);
}
}
return res;
return new PagedResult<RollCallCaseHistoryDetail>();
}
}