public ActionResult Index(string id) { var model = new SiteModel(_context, id ?? ""); //ViewBag.isHomePage = model.Content.ContentType == (int)ContentType.HomePage; this.SetSeoContent(model); if (model.Content.ContentType != 1) { switch (model.Content.ContentType) { case 2: return View("Gallery", model); case 3: return View("Products", model); } } return View(model); }
public ActionResult ProductDetails(int id) { var model = new SiteModel(_context, null, id); this.SetSeoContent(model); return View(model); }
public ActionResult Products(string id) { var model = new SiteModel(_context, id); this.SetSeoContent(model); return View(model); }