예제 #1
0
        public static BizGroupUser LoadByUserIDAndGroupID(long uid, long groupID)
        {
            var model = new GroupUserDAL().GetByUserIDAndGroupInfoID(uid, groupID);

            if (model == null)
            {
                return(null);
            }
            return(new BizGroupUser(model));
        }
예제 #2
0
        public static List <BizGroupUser> LoadByGroupIDList(List <long> groupIDs)
        {
            var lstModel = new GroupUserDAL().GetListByGroupInfoIDs(groupIDs);

            if (lstModel == null)
            {
                return(new List <BizGroupUser>());
            }
            return(lstModel.Select(mode => new BizGroupUser(mode)).ToList());
        }
예제 #3
0
        public static BizGroupUser LoadByGroupUserID(long infoID)
        {
            var model = new GroupUserDAL().GetByGroupUserID(infoID);

            if (model == null)
            {
                return(null);
            }
            return(new BizGroupUser(model));
        }
예제 #4
0
        public static List <BizGroupUser> LoadGroupUser(long userID)
        {
            var lstModel = new GroupUserDAL().GetListByUserID(userID);

            return(lstModel.Select(mode => new BizGroupUser(mode)).ToList());
        }
예제 #5
0
        public static List <BizGroupUser> LoadByGroupID(long groupID)
        {
            var lstModel = new GroupUserDAL().GetListByGroupInfoID(groupID);

            return(lstModel.Select(mode => new BizGroupUser(mode)).ToList());
        }