Beispiel #1
0
 public async Task EditTestCategoryAsync(Guid testId, EditTestCategoryBindingModel model)
 {
     await _testsRepository.UpdateAsync(t => t.Id == testId, test =>
     {
         test.CategoryId    = model.CategoryId;
         test.SubcategoryId = null;
     });
 }
Beispiel #2
0
 public async Task EditTestCategoryAsync([FromRoute] Guid testId, [FromBody] EditTestCategoryBindingModel model)
 {
     await _testsService.EditTestCategoryAsync(testId, model);
 }