public static List <About> GetAboutsFromCache() { var result = WebCache.Get("about-cache"); if (result == null) { AboutManager aboutManager = new AboutManager(); result = aboutManager.List(); WebCache.Set("about-cache", result, 20, true); } return(result); }
public ActionResult About() { return(PartialView("_About", aboutmanaer.List().FirstOrDefault())); }
public ActionResult Index() { return(View(aboutManager.List())); }
// GET: About public ActionResult Index() { var aboutList = aboutManager.List(); return(View(aboutList)); }
public ActionResult About() { aboutManager.List(); return(RedirectToAction("_AboutPartial")); }
public ActionResult About() { var about = aboutManager.List(); return(View(about)); }