public ActionResult <RolViewModel> Get(int id) { var rol = rolService.Consultar(id); if (rol == null) { return(NotFound()); } var rolViewModel = new RolViewModel(rol); return(rolViewModel); }