Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public JsonResult _GetPrimarySkuList(GetPrimarySkuList getPrimarySkuList)
        {
            var skuList = getPrimarySkuList.ExecuteList();

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