private void LogProductViewActivity(ProductPageViewModel model) { PersonalizationServices.RecordProductViews(model.LocalProduct.Bvin, HccApp); if (!IsConcreteItemModule) { HccApp.AnalyticsService.RegisterEvent(HccApp.CurrentCustomerId, ActionTypes.ProductViewed, model.LocalProduct.Bvin); } }
//GET: /{*slug} public ActionResult Index(string slug) { // Basic Setup ProductPageViewModel model = IndexSetup(slug); // Load an line item specific values LoadLineItemValues(model); // Render Options model.PreRenderedOptions = HtmlRendering.ProductOptions(model.LocalProduct.Options, model.Selections); // Record and Return view PersonalizationServices.RecordProductViews(model.LocalProduct.Bvin, MTApp); return(View(model)); }