public IActionResult Get(int id)
 {
     try
     {
         return(Ok(_bus.GetPersona(id)));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, ex));
     }
 }
Esempio n. 2
0
 public Task <EPersona> GetPersonaAsync(int id)
 {
     return(_bus.GetPersona(id));
 }