public async Task EditTestInputAsync(Guid testId, EditTestInputBindingModel model) { await _testsRepository.UpdateAsync(t => t.Id == testId, test => { test.HasEmptyInput = model.HasEmptyInput; test.Input = model.Input; }); }
public async Task EditTestInputAsync([FromRoute] Guid testId, [FromBody] EditTestInputBindingModel model) { await _testsService.EditTestInputAsync(testId, model); }