示例#1
0
        public static void PatchAssignUserGroupRoles(SystemUserGroupWrapper userGroupWrapper, List <string> roleids)
        {
            if (userGroupWrapper == null)
            {
                throw new ArgumentNullException("userGroupWrapper");
            }
            if (roleids == null)
            {
                throw new ArgumentNullException("roleids");
            }

            businessProxy.PatchAssignUserGroupRoles(userGroupWrapper.entity, roleids);
        }
示例#2
0
        public static List <string> GetUserGroupAssignedRoleIDs(SystemUserGroupWrapper userGroupWrapper)
        {
            if (userGroupWrapper == null)
            {
                throw new ArgumentNullException("systemUserGroupWrapper");
            }

            List <SystemRoleEntity> assignedRoles = businessProxy.GetAssignedRoleByUserGroup(userGroupWrapper.entity);

            List <string> roleIDs = new List <string>();

            foreach (SystemRoleEntity role in assignedRoles)
            {
                roleIDs.Add(role.RoleID.ToString());
            }

            return(roleIDs);
        }
 public static List <SystemUserGroupUserRelationWrapper> FindAllByUserGroupID(SystemUserGroupWrapper userGroupID)
 {
     return(ConvertToWrapperList(businessProxy.FindAllByUserGroupID(userGroupID.entity)));
 }
 public static List <SystemUserGroupUserRelationWrapper> FindAllByOrderByAndFilterAndUserGroupID(string orderByColumnName, bool isDesc, SystemUserGroupWrapper userGroupID, PageQueryParams pageQueryParams)
 {
     return(ConvertToWrapperList(businessProxy.FindAllByOrderByAndFilterAndUserGroupID(orderByColumnName, isDesc, userGroupID.entity, pageQueryParams)));
 }
 public static void Refresh(SystemUserGroupWrapper instance)
 {
     businessProxy.Refresh(instance.entity);
 }
 public static void Delete(SystemUserGroupWrapper instance)
 {
     businessProxy.Delete(instance.entity);
 }
 public static void SaveOrUpdate(SystemUserGroupWrapper obj)
 {
     businessProxy.SaveOrUpdate(obj.entity);
 }