public async Task <ActionResult <TodoItem> > GetTodoItem(long id) { var todoItem = await _service.GetTodoItemAsync(id); if (todoItem == null) { return(NotFound()); } return(todoItem); }
public async Task <ActionResult <TodoItem> > GetTodoItem(long id) { var todoItem = await _service.GetTodoItemAsync(id); if (todoItem == null) { return(NotFound()); } return(todoItem); }