diff --git a/IRaCIS.Core.Application/Service/Document/DTO/TrialFileTypeViewModel.cs b/IRaCIS.Core.Application/Service/Document/DTO/TrialFileTypeViewModel.cs index 7ac86d02a..1a980c7c5 100644 --- a/IRaCIS.Core.Application/Service/Document/DTO/TrialFileTypeViewModel.cs +++ b/IRaCIS.Core.Application/Service/Document/DTO/TrialFileTypeViewModel.cs @@ -36,7 +36,7 @@ public class SetAuthorizedViewInDto { public Guid Id { get; set; } - public bool IsAuthorizedView { get; set; } + public bool IsEnable { get; set; } } public class GetTrialFileTypeDataInDto diff --git a/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs b/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs index e151035a7..a3f6c50fd 100644 --- a/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs +++ b/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs @@ -166,7 +166,7 @@ public class TrialFileTypeService(IRepository _trialFileTypeRepos [HttpPost] public async Task SetAuthorizedView(SetAuthorizedViewInDto inDto) { - await _trialFileTypeRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new TrialFileType() { IsAuthorizedView = inDto.IsAuthorizedView }, true); + await _trialFileTypeRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new TrialFileType() { IsEnable = inDto.IsEnable }, true); return ResponseOutput.Ok(); }