fix Error
This commit is contained in:
parent
03ac050ef9
commit
8a4d843fa2
1 changed files with 4 additions and 2 deletions
|
|
@ -190,7 +190,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
var doc = await _minIOService.UploadFileAsync(d);
|
||||
if (doc != null)
|
||||
{
|
||||
var a = leaveRequest.LeaveDocument.Add(new LeaveDocument { Document = doc });
|
||||
leaveRequest.LeaveDocument.Add(new LeaveDocument { Document = doc });
|
||||
var a = leaveRequest.LeaveDocument.Last();
|
||||
_context.Entry(a).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
|
||||
}
|
||||
}
|
||||
|
|
@ -418,7 +419,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
var doc = await _minIOService.UploadFileAsync(d);
|
||||
if (doc != null)
|
||||
{
|
||||
var a = leaveRequest.LeaveDocument.Add(new LeaveDocument { Document = doc });
|
||||
leaveRequest.LeaveDocument.Add(new LeaveDocument { Document = doc });
|
||||
var a = leaveRequest.LeaveDocument.Last();
|
||||
_context.Entry(a).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue