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