예제 #1
0
 public async Task EditTestSubcategoryAsync(Guid testId, EditTestSubcategoryBindingModel model)
 {
     await _testsRepository.UpdateAsync(t => t.Id == testId, test =>
     {
         test.SubcategoryId = model.SubcategoryId;
     });
 }
예제 #2
0
 public async Task EditTestSubcategoryAsync([FromRoute] Guid testId, [FromBody] EditTestSubcategoryBindingModel model)
 {
     await _testsService.EditTestSubcategoryAsync(testId, model);
 }