Пример #1
0
        /// <summary>
        /// 粉丝列表分页
        /// </summary>
        /// <param name="id">uid</param>
        /// <returns></returns>
        public List <ViewFollow> GetFollowQuiltUidList(int itype, int id, int page, int pagesize, out int count)
        {
            List <Follow>     list  = Repository.GetFollowQuiltUidList(itype, id, page, pagesize, out count);
            List <ViewFollow> model = new List <ViewFollow>();

            foreach (var item in list)
            {
                model.Add(ViewFollow.ToViewModel(item));
            }
            return(model);
        }
Пример #2
0
        /// <summary>
        /// 瑜伽圈
        /// </summary>
        /// <param name="uid"></param>
        /// <returns>1120</returns>
        public List <ViewFollow> GetFollowUidQuiltList(int uid)
        {
            List <Follow>     list  = Repository.GetFollowUidQuiltList(uid);
            List <ViewFollow> model = new List <ViewFollow>();

            foreach (var item in list)
            {
                model.Add(ViewFollow.ToViewModel(item));
            }
            return(model);
        }
Пример #3
0
        public List <ViewFollow> GetFollowPageList(string where, int Gender, int YogisLevel, string YogaTypeid, int page, int pagesize, out int count)
        {
            List <Follow> list = Repository.GetFollowPageList(where, Gender, YogisLevel, YogaTypeid, page, pagesize, out count);

            List <ViewFollow> model = new List <ViewFollow>();

            foreach (var item in list)
            {
                model.Add(ViewFollow.ToViewModel(item));
            }
            return(model);
        }
Пример #4
0
 public ViewFollow GetFollowById(int uid, int QuiltUid)
 {
     return(ViewFollow.ToViewModel(Repository.GetFollowById(uid, QuiltUid)));
 }
Пример #5
0
 public ViewFollow GetFollowById(int id)
 {
     return(ViewFollow.ToViewModel(Repository.GetFollowById(id)));
 }