Ejemplo n.º 1
0
 public virtual void Update(UserroleDataModel userrole)
 {
     if (userrole.RoleID > 0 && userrole.UserID > 0)
     {
         UserroleDAL.Update(userrole);
     }
     else
     {
         throw new Exception("Page not found");
     }
 }
Ejemplo n.º 2
0
 public List <UserroleDataModel> GetByRole(int id)
 {
     return(UserroleDAL.GetByRole(id));
 }
Ejemplo n.º 3
0
 public int GetCount(int userroleID)
 {
     return(UserroleDAL.GetCount(userroleID));
 }
Ejemplo n.º 4
0
 public virtual void Delete(int id)
 {
     UserroleDAL.Delete(id);
 }
Ejemplo n.º 5
0
 public virtual void Create(UserroleDataModel userrole)
 {
     UserroleDAL.Create(userrole);
 }
Ejemplo n.º 6
0
 public virtual UserroleDataModel Get(int id)
 {
     return(UserroleDAL.Get(id));
 }
Ejemplo n.º 7
0
 public virtual List <UserroleDataModel> GetAll(int id = 0)
 {
     return(UserroleDAL.GetAll());
 }