Пример #1
0
 public void WhenTheTodoIsSetToComplete()
 {
     _todoService.CompleteTodo(new CompleteTodoRequest()
     {
         Id = _todo.Id
     });
 }
Пример #2
0
 public async Task <IActionResult> CompleteTodo([FromBody] CompleteTodoRequest request)
 {
     try
     {
         return(Ok(await _todoService.CompleteTodo(request)));
     }
     catch (Exception e)
     {
         return(Problem(e.Message));
     }
 }