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