Beispiel #1
0
        public ActionResult Index(string category, string subcategory, string product, int? artId)
        {
            var model = new CategoryModel(CurrentLang, _context, category, subcategory, product, artId);

            ViewBag.Language = CurrentLang.Code;
            ViewBag.Category = category;
            ViewBag.SubCategory = subcategory;
            ViewBag.IsHomePAge = subcategory == null?"1":"";
            ViewBag.RandomImageSource = model.RandomImageSource;

            this.SetSeoContent(model);
            return View(model);
        }
Beispiel #2
0
 public ActionResult Intro()
 {
     var model = new CategoryModel(CurrentLang, _context, intro: true);
     this.SetSeoContent(model);
     return View(model);
 }