public async Task <ActionResult <TodoRecord> > GetTodoById(int id) { var record = await _todosService.GetTodoByIdAsync(id); if (record is null) { return(NotFound()); } return(record); }