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