Exemple #1
0
 public static void DeleteUserRole(int userID, int roleID)
 {
     RolesDataMapper objCaller = new RolesDataMapper();
     objCaller.DeleteUserRole(userID, roleID);
 }
Exemple #2
0
 public static void DeletePageRole(int pageID, int roleID)
 {
     RolesDataMapper objCaller = new RolesDataMapper();
     objCaller.DeletePageRole(pageID, roleID);
 }
Exemple #3
0
 public static void AssignRoletoUser(int userID, int roleID)
 {
     RolesDataMapper objCaller = new RolesDataMapper();
     objCaller.AddRolestoUser(userID, roleID);
 }
Exemple #4
0
 public static void AssignRoletoPage(int pageID, int roleID)
 {
     RolesDataMapper objCaller = new RolesDataMapper();
     objCaller.AddRolestoPage(pageID, roleID);
 }
Exemple #5
0
        public static IList<Roles> GetByPageID(int pageID)
        {
            RolesDataMapper objCaller = new RolesDataMapper();

            return objCaller.GetRolesByPage(pageID);
        }
Exemple #6
0
        public static void Delete(int ID)
        {
            RolesDataMapper objCaller = new RolesDataMapper();

            objCaller.Delete(ID);
        }
Exemple #7
0
        public static IList<Roles> GetByUserID(int userID)
        {
            RolesDataMapper objCaller = new RolesDataMapper();

            return objCaller.GetRolesByUserID(userID);
        }
Exemple #8
0
        public static IList<Roles> GetAll()
        {
            RolesDataMapper objCaller = new RolesDataMapper();

            return objCaller.GetAll();
        }
Exemple #9
0
        public static Roles GetByID(int ID)
        {
            RolesDataMapper objCaller = new RolesDataMapper();

            return objCaller.GetByID(ID);
        }
Exemple #10
0
        public static void Update(Roles obj)
        {
            RolesDataMapper objCaller = new RolesDataMapper();

            objCaller.Update(obj);
        }
Exemple #11
0
        public static int Add(Roles obj)
        {
            RolesDataMapper objCaller = new RolesDataMapper();

            return objCaller.Add(obj);
        }