示例#1
0
        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);
        }
示例#2
0
 public ActionResult NotFound()
 {
     var model = new SiteModel(_context, "", null, true);
     return View(model);
 }