public ActionResult Documents(string categoryId, string subCategoryId) { var model = new BuildingModel(_context, categoryId, subCategoryId, (int)EContentType.Documents); if (model.ActiveCategoryNotFound) return RedirectToAction("Documents", new { categoryId = model.RedirectCategoryId, subCategoryId = model.RedirectSubCategoryId }); ViewBag.IsHomePage = model.IsHomePage; ViewBag.ContentType = (int)EContentType.Documents; ViewBag.CategoryLevel = model.Building.CategoryLevel == 0 ? "documentRoot" : "document"; ViewBag.CategoryId = categoryId; ViewBag.SubCategoryId = subCategoryId; this.SetSeoContent(model); return View(model); }
public ActionResult WhereToBuy(string categoryId, string subCategoryId) { var model = new BuildingModel(_context, categoryId, subCategoryId, (int)EContentType.WhereToBuy); if (model.ActiveCategoryNotFound) return RedirectToAction("WhereToBuy", new { categoryId = model.RedirectCategoryId, subCategoryId = model.RedirectSubCategoryId }); ViewBag.IsHomePage = model.IsHomePage; ViewBag.ContentType = (int)EContentType.WhereToBuy; ViewBag.CategoryLevel = model.Building.CategoryLevel == 0 ? "wheretobuyRoot" : "wheretobuy"; ViewBag.CategoryId = categoryId; ViewBag.SubCategoryId = subCategoryId; this.SetSeoContent(model); return View(model); }
public ActionResult Articles(string id) { var model = new BuildingModel(_context, null, null, (int)EContentType.About, id); if (model.ActiveCategoryNotFound) return RedirectToAction("About", new { categoryId = model.RedirectCategoryId, subCategoryId = model.RedirectSubCategoryId }); ViewBag.IsHomePage = model.IsHomePage; ViewBag.ContentType = (int)EContentType.About; ViewBag.CategoryLevel = "about"; ViewBag.CategoryId = ""; ViewBag.SubCategoryId = ""; ViewBag.ArticleId = model.Article != null ? model.Article.Name : ""; model.Articles = _context.Article.OrderBy(a => a.Date).ToList(); this.SetSeoContent(model); return View(model); }
public ActionResult About(string categoryId, string subCategoryId) { var model = new BuildingModel(_context, categoryId, subCategoryId, (int)EContentType.About); if (model.ActiveCategoryNotFound) return RedirectToAction("About", new { categoryId = model.RedirectCategoryId, subCategoryId = model.RedirectSubCategoryId }); ViewBag.IsHomePage = model.IsHomePage; ViewBag.ContentType = (int)EContentType.About; ViewBag.CategoryLevel = model.Building.CategoryLevel == 0 ? "aboutRoot" : "about"; ViewBag.CategoryId = categoryId; ViewBag.SubCategoryId = subCategoryId; model.Articles = _context.Article.OrderBy(a => a.Date).ToList(); this.SetSeoContent(model); return View(model); }