public ActionResult GetDetail()
        {
            var helper = new UmbracoCustomHelper();
            IPublishedContent currentNode = Umbraco.TypedContent(Convert.ToInt32(GetRequest("product_id")));
            Product           product     = new Product(currentNode);
            List <string>     gallery     = new List <string>();
            var caseImagesList            = currentNode.GetCustomValue("gallery");

            foreach (var item in caseImagesList)
            {
                var media = helper.GetMedia(item.Id);
                gallery.Add(media);
            }
            return(Ret("", 1, new { name = product.Name, price = product.Price, additional = product.Additional, description = product.Description, gallery = gallery }));
        }
 public HomeController(UmbracoCustomHelper umbracoCustomHelper)
 {
     _umbracoHelper       = new UmbracoHelper(UmbracoContext.Current);
     _umbracoCustomHelper = umbracoCustomHelper;
 }