diff --git a/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs b/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs index cf65aff96..4cb7ed22d 100644 --- a/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs +++ b/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs @@ -197,6 +197,7 @@ public class TrialFileTypeService(IRepository _trialFileTypeRepos FileRecordId = entity.Id }); + await _trialFileTypeRepository.SaveChangesAsync(); return ResponseOutput.Ok(); } @@ -211,7 +212,7 @@ public class TrialFileTypeService(IRepository _trialFileTypeRepos var trialFileType = await _trialFileTypeRepository.Where(x => x.Id == inDto.TrialFileTypeId).FirstNotNullAsync(); if (trialFileType.FileRecordId == null) { - return new TrialFileDto() { } ; + return new TrialFileDto() { }; } var file = await _trialFileRepository.Where(x => x.Id == trialFileType.FileRecordId).ProjectTo(_mapper.ConfigurationProvider).FirstNotNullAsync(); return file;