public ActionResult Index(string category, string product) { var model = new SiteModel(_context, category ?? "", product); this.SetSeoContent(model); ViewBag.isHomePage = model.Content.IsHomepage; ViewBag.Title = model.Title; if (model.Product != null) return View("Product", model); return View(model); }
public ActionResult NotFound() { var model = new SiteModel(_context, "", null, true); return View(model); }