コード例 #1
0
        public List <ViewtKeyWord> SearchKeyWordList(string sWord)
        {
            List <tKeyWord> list = Repository.SearchKeyWordList(sWord);

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

            foreach (var item in list)
            {
                model.Add(ViewtKeyWord.ToViewModel(item));
            }
            return(model);
        }
コード例 #2
0
        public List <ViewtKeyWord> GetPageList(string sWord, int page, int pagesize, out int count)
        {
            List <tKeyWord> list = Repository.GetPageList(sWord, page, pagesize, out count);

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

            foreach (var item in list)
            {
                model.Add(ViewtKeyWord.ToViewModel(item));
            }
            return(model);
        }
コード例 #3
0
 public ViewtKeyWord GetById(int id)
 {
     return(ViewtKeyWord.ToViewModel(Repository.Get(id)));
 }