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)); }
public JsonResult _GetPrimarySkuList(GetPrimarySkuList getPrimarySkuList) { var skuList = getPrimarySkuList.ExecuteList(); return(this.Json(new { result = skuList })); }