示例#1
0
        public ActionResult TestNo()
        {
            var list = new AdminService().GetCommodityList(0, 20);

            return Content(string.Empty);
        }
        /// <summary>
        /// 商品类别查询
        /// </summary>
        /// <returns></returns>
        public ActionResult ShopModuleList()
        {
            //Query
            IEnumerable<dynamic> list = new AdminService().Main_QueryModule();

            IEnumerable<dynamic> result = list.Select(x => { return new { Text = x.Title, Value = x.MID }; });

            return Content(JsonConvert.SerializeObject(result));
        }