Пример #1
0
        public async Task <ActionResult <TodoDTO> > GetTodo(long id)
        {
            var todoDTO = await _todosService.FindByIdAsync(id);

            if (todoDTO == null)
            {
                return(NotFound());
            }

            return(todoDTO);
        }