Example #1
0
 public ActionResult <IEnumerable <Todo> > Get()
 {
     try
     {
         return(Ok(_tdService.Get()));
     }
     catch (System.Exception err)
     {
         return(BadRequest(err.Message));
     }
 }
Example #2
0
 public async Task <IEnumerable <Todo> > Get()
 {
     return(await _service.Get());
 }