Ejemplo n.º 1
0
        /// <summary>
        /// 字典列表
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(int page = 1, string where = "")
        {
            List <ViewYogaDicItem> list = new List <ViewYogaDicItem>();
            int count = 0;

            using (YogaDicItemServiceClient client = new YogaDicItemServiceClient())
            {
                list = client.GetYogaDicItemPageList(where, 0, page, 15, out count);
            }
            PagedList <ViewYogaDicItem> pagelist = new PagedList <ViewYogaDicItem>(list, page, 15, count);

            ViewBag.listDic = pagelist;
            return(View(pagelist));
        }