/// <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); }
/// <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); }
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); }
public ViewFollow GetFollowById(int uid, int QuiltUid) { return(ViewFollow.ToViewModel(Repository.GetFollowById(uid, QuiltUid))); }
public ViewFollow GetFollowById(int id) { return(ViewFollow.ToViewModel(Repository.GetFollowById(id))); }