Пример #1
0
 public IActionResult Retrieve(int todoId)
 {
     try
     {
         var thisTodo = _todos.FetchSingle(todoId);
         return(Ok(thisTodo));
     }
     catch (EntityNotFoundException)
     {
         return(NotFound());
     }
 }