Пример #1
0
        public JsonResult QuickView(int id)
        {
            var products = new FreshFoodEntities().products.SingleOrDefault(p => p.id == id);
            var json     = JsonConvert.SerializeObject(products);

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