public IActionResult GetTodo(int id) { var todo = _todoManager.Get(id); if (todo == null) { return(NotFound()); } return(new ObjectResult(todo)); }
public async Task <ApiResponse> Get() => await _todoManager.Get();
public IActionResult GetTodo(int id) { var todo = _todoManager.Get(id); if (todo == null) { return(NotFound()); } return(new ObjectResult(todo)); }
public async Task <ApiResponse> Get() => await _todoManager.Get();