// // GET: /Brands/ public ActionResult Index(string category) { using (var context = new SiteContainer()) { var model = new CatalogueViewModel(context, category, null, (int)CategoryType.Brand); ViewBag.CategoryType = (int)CategoryType.Brand; this.SetSeoContent(model); ViewBag.CategoryId = model.Category.Id; ViewBag.CategoryName = model.Category.Name; return View(model); } }
public ActionResult Index(string category, string subcategory) { using (var context = new SiteContainer()) { var model = new CatalogueViewModel(context, category, subcategory, (int)CategoryType.Category); ViewBag.CategoryType = (int)CategoryType.Category; this.SetSeoContent(model); if (model.Category != null) { ViewBag.CategoryId = model.Category.Id; } return View(model); } }