public static Rol Rol_Leer(int idRol, string nombreRol) { DTRol dtRol = new DTRol(); Rol DatosRol = new Rol(); List <Rol> RolLeer = dtRol.Rol_Leer(idRol, nombreRol); foreach (Rol rol in RolLeer) { DatosRol = rol; } return(DatosRol); }
public static List <Rol> Rol_LeerTodo(int idRol, string nombreRol) { DTRol dtRol = new DTRol(); return(dtRol.Rol_Leer(idRol, nombreRol)); }