no message
This commit is contained in:
parent
e209efc4e8
commit
276607aac0
1 changed files with 2 additions and 2 deletions
|
|
@ -654,7 +654,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
|||
|
||||
if (periodExam == null)
|
||||
throw new Exception(GlobalMessages.ExamNotFound);
|
||||
if (periodExam.PeriodExamBarCodes != null && periodExam.PeriodExamBarCodes[0] != null && periodExam.PeriodExamBarCodes[0].Document != null)
|
||||
if (periodExam.PeriodExamBarCodes != null && periodExam.PeriodExamBarCodes.Count() > 0 && periodExam.PeriodExamBarCodes[0] != null && periodExam.PeriodExamBarCodes[0].Document != null)
|
||||
await _minioService.DeleteFileAsync(periodExam.PeriodExamBarCodes[0].Document.Id);
|
||||
foreach (var file in files)
|
||||
{
|
||||
|
|
@ -687,7 +687,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
|||
|
||||
if (periodExam == null)
|
||||
throw new Exception(GlobalMessages.ExamNotFound);
|
||||
if (periodExam.PeriodExamBarCodes != null && periodExam.PeriodExamBarCodes[0] != null && periodExam.PeriodExamBarCodes[0].Document != null)
|
||||
if (periodExam.PeriodExamBarCodes != null && periodExam.PeriodExamBarCodes.Count() > 0 && periodExam.PeriodExamBarCodes[0] != null && periodExam.PeriodExamBarCodes[0].Document != null)
|
||||
await _minioService.DeleteFileAsync(periodExam.PeriodExamBarCodes[0].Document.Id);
|
||||
|
||||
foreach (var file in files)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue