Exemplo n.º 1
0
        public JsonResult GetRelatedSkuList(GetRelatedSkuList getRelatedSkuList) // Note: this method could leak all skus
        {
            getRelatedSkuList.Type = 1;                                          // Extras
            var result = getRelatedSkuList.ExecuteList().Select(x => new { Id = x.Id, Name = x.Name, Amount = x.Amount, NameAndAmount = x.NameAndAmount });

            return(this.Json(new { result = result }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public JsonResult _GetRelatedSkuList(GetRelatedSkuList getRelatedSkuList)
        {
            List <Sku> skuList = getRelatedSkuList.ExecuteList();

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