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