chage code add profile filter
This commit is contained in:
parent
6d62d357a6
commit
8f22189a89
1 changed files with 1 additions and 0 deletions
|
|
@ -305,6 +305,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
|||
// insert to profile leave
|
||||
var profileLeave = await _appDbContext.Set<ProfileLeave>()
|
||||
.Where(x => x.TypeLeave.Id == leaveType.Id)
|
||||
.Where(x => x.Profile.Id == profile.Id)
|
||||
.Where(x => x.DateStartLeave == rawData.LeaveStartDate && x.DateEndLeave == rawData.LeaveEndDate)
|
||||
.FirstOrDefaultAsync();
|
||||
if (profileLeave != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue