public IActionResult Get(int id) { try { return(Ok(appService.ConsultarPorId(id))); } catch (Exception e) { return(StatusCode(500, e.Message)); } }