コード例 #1
0
        public async Task <ActionResult <TodoRecord> > GetTodoById(int id)
        {
            var record = await _todosService.GetTodoByIdAsync(id);

            if (record is null)
            {
                return(NotFound());
            }

            return(record);
        }