예제 #1
0
        public ActionResult LoadCartData(List <string> items)
        {
            if (items != null)
            {
                var itemsReturn = _productApplication.GetMany(items.ConvertAll(Guid.Parse));
                return(Json(itemsReturn.Select(x => new { x.Id, x.Name, x.Price }), JsonRequestBehavior.AllowGet));
            }

            return(Json(null, JsonRequestBehavior.AllowGet));
        }