public ActionResult ProductDetailsPopUp(int id, int? productImageId) { using (var context = new SiteContainer()) { var model = new GalleryModel(context, null, id, productImageId); this.SetSeoContent(model); return PartialView(model); } }
public ActionResult ProductDetails(int id) { using (var context = new SiteContainer()) { var model = new GalleryModel(context, null, id); this.SetSeoContent(model); ViewBag.PageTitle = model.PageTitle; //ViewBag.CurrentCategoryId = model.Category.Id; ViewBag.CurrentProductId = model.Product.Id; return View(model); } }
public ActionResult Gallery(string id) { using (var context = new SiteContainer()) { var model = new GalleryModel(context, id); ViewBag.CurrentMenuItemName = model.Content.Name; //ViewBag.CurrentCategoryId = model.Category.Id; this.SetSeoContent(model); ViewBag.PageTitle = model.PageTitle; return View(model); } }