public ActionResult English() { using (var context = new SiteContext()) { var model = new SiteViewModel(context, null); ViewBag.PageTitle = model.PageTitle; ViewBag.isHomePage = false; return View(model); } }
public ActionResult SiteContent(string id) { using (var context = new SiteContext()) { var model = new SiteViewModel(context, id); this.SetSeoContent(model); ViewBag.PageTitle = model.PageTitle; ViewBag.isHomePage = false; return View("Content", model); } }