public VistaXRol RetrieveById(int id) { var vrm = new VistaXRolManagement(); var credito = new VistaXRol() { id = id }; return(vrm.RetrieveById(credito)); }
public List <VistaXRol> RetrieveByRol(int id) { var vrm = new VistaXRolManagement(); var credito = new VistaXRol() { id_rol = id }; return(vrm.RetrieveByRol(credito)); }
public IActionResult Update(VistaXRol c) { try { var vrm = new VistaXRolManagement(); vrm.Update(c); return(Ok()); } catch (Exception ex) { return(StatusCode(500, ex)); } }
public IActionResult Delete(int id_rol, int id_vista) { try { var c = new VistaXRol { id_rol = id_rol, id_vista = id_vista }; var vrm = new VistaXRolManagement(); vrm.Delete(c); return(Ok()); } catch (Exception ex) { return(StatusCode(500, ex)); } }
public List <VistaXRol> RetrieveAll() { var vrm = new VistaXRolManagement(); return(vrm.RetrieveAll()); }