fix: Leave with Upload File
This commit is contained in:
parent
338163de35
commit
00186924fb
1 changed files with 17 additions and 4 deletions
|
|
@ -91,8 +91,15 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
|||
if (entity.LeaveDraftDocument != null)
|
||||
_dbContext.Attatch(entity.LeaveDraftDocument);
|
||||
|
||||
// if (entity.LeaveDocument != null)
|
||||
// _dbContext.Attatch(entity.LeaveDocument);
|
||||
if (entity.LeaveDocument != null)
|
||||
{
|
||||
foreach(var d in entity.LeaveDocument)
|
||||
{
|
||||
_dbContext.Attatch(d);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (entity.Type != null)
|
||||
_dbContext.Attatch(entity.Type);
|
||||
|
|
@ -108,8 +115,14 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
|||
if (entity.LeaveDraftDocument != null)
|
||||
_dbContext.Attatch(entity.LeaveDraftDocument);
|
||||
|
||||
// if (entity.LeaveDocument != null)
|
||||
// _dbContext.Attatch(entity.LeaveDocument);
|
||||
if (entity.LeaveDocument != null)
|
||||
{
|
||||
foreach (var d in entity.LeaveDocument)
|
||||
{
|
||||
_dbContext.Attatch(d);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (entity.Type != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue