예제 #1
0
        public JsonResult GetRecommendShopBranch()
        {
            ShopBranchQuery query = new ShopBranchQuery
            {
                IsRecommend = true
            };
            IOrderedEnumerable <ShopBranch> enumerable = from n in ShopBranchApplication.GetShopBranchsNoPager(query)
                                                         orderby n.RecommendSequence
                                                         select n;

            return(base.Json(new { rows = enumerable }, JsonRequestBehavior.AllowGet));
        }