Ejemplo n.º 1
0
 public async Task <ActionResult <PersonResponse> > Get()
 {
     try
     {
         var response = Response(await _facade.FindAllAsync());
         return(response);
     }
     catch (Exception ex)
     {
         var result = BadRequest(ex.Message);
         return(result);
     }
 }
Ejemplo n.º 2
0
 public async Task <ActionResult <PersonResponse> > Get() => Response(await _facade.FindAllAsync());
 public async Task <ActionResult <PersonResponse> > Get()
 {
     return(Response(await personFacade.FindAllAsync()));
 }