Beispiel #1
0
        public List <ViewtInstationInfo> GetByContent(string sContent)
        {
            List <tInstationInfo> list = Repository.GetByContent(sContent);

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

            foreach (var item in list)
            {
                model.Add(ViewtInstationInfo.ToViewModel(item));
            }
            return(model);
        }
Beispiel #2
0
        public List <ViewtInstationInfo> GetPageList(int uid, int page, int pagesize, out int count)
        {
            List <tInstationInfo> list = Repository.GetPageList(uid, page, pagesize, out count);

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

            foreach (var item in list)
            {
                model.Add(ViewtInstationInfo.ToViewModel(item));
            }
            return(model);
        }
Beispiel #3
0
        public List <ViewtInstationInfo> GetPageList(string content, int iType, DateTime?CreateTime, int page, int pagesize, out int count)
        {
            List <tInstationInfo> list = Repository.GetPageList(content, iType, CreateTime, page, pagesize, out count);

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

            foreach (var item in list)
            {
                model.Add(ViewtInstationInfo.ToViewModel(item));
            }
            return(model);
        }
Beispiel #4
0
        public List <ViewtInstationInfo> GetPageListWhereUidAndloginType(int uid, int loginType, out int count)
        {
            List <tInstationInfo> list = Repository.GetPageListWhereUidAndloginType(uid, loginType, out count);

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

            foreach (var item in list)
            {
                model.Add(ViewtInstationInfo.ToViewModel(item));
            }
            return(model);
        }
Beispiel #5
0
 public ViewtInstationInfo GetByUid(int Uid)
 {
     return(ViewtInstationInfo.ToViewModel(Repository.GetByUid(Uid)));
 }