Exemple #1
0
 public ActionResult English()
 {
     using (var context = new SiteContext())
     {
         var model = new SiteViewModel(context, null);
         ViewBag.PageTitle = model.PageTitle;
         ViewBag.isHomePage = false;
         return View(model);
     }
 }
Exemple #2
0
 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);
     }
 }