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