Example #1
0
 public ActionResult EditAbout(InfoPageViewModel model)
 {
     var entity = _infoPageRepo.Get().First();
     entity.PageContent = model.PageContent;
     _infoPageRepo.Update(entity);
     return RedirectToAction("About");
 }
Example #2
0
 public ActionResult EditAbout()
 {
     var infoPage = _infoPageRepo.Get().First();
     var infoPageViewModel = new InfoPageViewModel
     {
         PageContent = infoPage.PageContent
     };
     return View(infoPageViewModel);
 }