@@ -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
|
||||
|
||||
@@ -166,7 +166,7 @@ public class TrialFileTypeService(IRepository<TrialFileType> _trialFileTypeRepos
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> 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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user