Exemple #1
0
 public async Task EditTestDisabledReasonAsync(Guid testId, EditTestDisabledReasonBindingModel model)
 {
     await _testsRepository.UpdateAsync(t => t.Id == testId, test =>
     {
         test.DisabledReason = model.DisabledReason;
     });
 }
Exemple #2
0
 public async Task EditTestDisabledReasonAsync([FromRoute] Guid testId, [FromBody] EditTestDisabledReasonBindingModel model)
 {
     await _testsService.EditTestDisabledReasonAsync(testId, model);
 }