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