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