Example #1
0
        private ActionResult BuildDetailView(DetailModel model)
        {
            ViewBag.Title       = model.ProductDetail.Seo.PageTitle;
            ViewBag.Description = model.ProductDetail.Seo.PageDescription;
            ViewBag.Scripts     = new List <string>()
            {
                "detail.js"
            };
            ViewBag.CanonicalUrl    = UrlBuilder.BuildCanonicalProductDetailUrl(model.ProductDetail.Code, model.ProductDetail.Name);
            ViewBag.IsProductDetail = true;

            // Building and assigning Power Review Model.
            model.PowerReview = CommonService.GetPowerReviewModel(model.ProductDetail.Code);

            return(View(PathFromView("Detail"), model));
        }