public void WhenTheTodoIsSetToComplete() { _todoService.CompleteTodo(new CompleteTodoRequest() { Id = _todo.Id }); }
public async Task <IActionResult> CompleteTodo([FromBody] CompleteTodoRequest request) { try { return(Ok(await _todoService.CompleteTodo(request))); } catch (Exception e) { return(Problem(e.Message)); } }