public ActionResult Index() { var model = new SponsorIndexViewModel(); model.PageContent = context.Pages.Where(x => x.Title == "Sponsor").FirstOrDefault(); return View(model); }
public ActionResult Index() { var model = new SponsorIndexViewModel(); model.PageContent = repository.Get<Page>(x => x.Id == StaticPage.Sponsor); return View(model); }