fix: apply IgnoreQueryFilters in LeaveRepository for accurate data retrieval
This commit is contained in:
@@ -164,7 +164,7 @@ public class LeaveRepository : RepositoryBase<long, Leave>, ILeaveRepository
|
||||
|
||||
public LeavePrintViewModel PrintOne(long id)
|
||||
{
|
||||
var leave = _context.LeaveList.Select(x => new LeavePrintViewModel()
|
||||
var leave = _context.LeaveList.IgnoreQueryFilters().Select(x => new LeavePrintViewModel()
|
||||
{
|
||||
Id = x.id,
|
||||
ContractNo = "",
|
||||
@@ -222,7 +222,7 @@ public class LeaveRepository : RepositoryBase<long, Leave>, ILeaveRepository
|
||||
|
||||
foreach (var item in id)
|
||||
{
|
||||
var leave = _context.LeaveList.Select(x => new LeavePrintViewModel
|
||||
var leave = _context.LeaveList.IgnoreQueryFilters().Select(x => new LeavePrintViewModel
|
||||
{
|
||||
Id = x.id,
|
||||
ContractNo = "",
|
||||
|
||||
Reference in New Issue
Block a user