Ejemplo n.º 1
0
        public List <ViewtZanModels> GetByFromUidList(int ToUid, int loginType, out int count)
        {
            List <tZanModels> list = Repository.GetByFromUidList(ToUid, loginType, out count);

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

            foreach (var item in list)
            {
                model.Add(ViewtZanModels.ToViewModel(item));
            }
            return(model);
        }
Ejemplo n.º 2
0
        public List <ViewtZanModels> GettZanModelsPageListAll()
        {
            List <tZanModels> list = Repository.GettZanModelsPageListAll();

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

            foreach (var item in list)
            {
                model.Add(ViewtZanModels.ToViewModel(item));
            }
            return(model);
        }
Ejemplo n.º 3
0
        public List <ViewtZanModels> GetToUidList(int Uid)
        {
            List <tZanModels> list = Repository.GetToUidList(Uid);

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

            foreach (var item in list)
            {
                model.Add(ViewtZanModels.ToViewModel(item));
            }
            return(model);
        }
Ejemplo n.º 4
0
        public List <ViewtZanModels> GettZanModelsPageList(int page, int pagesize, out int count)
        {
            List <tZanModels> list = Repository.GettZanModelsPageList(page, pagesize, out count);

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

            foreach (var item in list)
            {
                model.Add(ViewtZanModels.ToViewModel(item));
            }
            return(model);
        }
Ejemplo n.º 5
0
 public ViewtZanModels GetByiToType(int iToType)
 {
     return(ViewtZanModels.ToViewModel(Repository.GetByiToType(iToType)));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 是否已经赞过
 /// </summary>
 /// <param name="iFromUid"></param>
 /// <param name="iToUid"></param>
 /// <returns></returns>
 public ViewtZanModels GetExists(int iFromUid, int iToUid, int iType, int iToType)
 {
     return(ViewtZanModels.ToViewModel(Repository.GetExists(iFromUid, iToUid, iType, iToType)));
 }
Ejemplo n.º 7
0
 public ViewtZanModels GetByFromToUid(int toid, int fromid, int?iToType)
 {
     return(ViewtZanModels.ToViewModel(Repository.GetByFromToUid(toid, fromid, iToType)));
 }
Ejemplo n.º 8
0
 public ViewtZanModels GettZanModelsByClassName(string ClassName)
 {
     return(ViewtZanModels.ToViewModel(Repository.GettZanModelsByClassName(ClassName)));
 }
Ejemplo n.º 9
0
 public ViewtZanModels GettZanModelsById(int id)
 {
     return(ViewtZanModels.ToViewModel(Repository.GettZanModelsById(id)));
 }