コード例 #1
0
        public JsonResult GetPrimarySkuList(GetPrimarySkuList getPrimarySku)
        {
            var result = getPrimarySku.ExecuteList().Select(x => new { Id = x.Id, Name = x.Name, Amount = x.Amount, NameAndPrice = x.NameAndAmount });

            return(this.Json(new { result = result }, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public JsonResult _GetPrimarySkuList(GetPrimarySkuList getPrimarySkuList)
        {
            var skuList = getPrimarySkuList.ExecuteList();

            return(this.Json(new { result = skuList }));
        }