fix : Correct Defect
This commit is contained in:
parent
99027059c5
commit
fec199cdd9
3 changed files with 12 additions and 9 deletions
|
|
@ -190,7 +190,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
var doc = await _minIOService.UploadFileAsync(d);
|
||||
if (doc != null)
|
||||
{
|
||||
leaveRequest.LeaveDocument.Add(new LeaveDocument { Document = doc });
|
||||
var a = leaveRequest.LeaveDocument.Add(new LeaveDocument { Document = doc });
|
||||
_context.Entry(a).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -417,7 +418,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
var doc = await _minIOService.UploadFileAsync(d);
|
||||
if (doc != null)
|
||||
{
|
||||
leaveRequest.LeaveDocument.Add(new LeaveDocument { Document = doc });
|
||||
var a = leaveRequest.LeaveDocument.Add(new LeaveDocument { Document = doc });
|
||||
_context.Entry(a).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue