Example #1
0
        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);
        }
Example #2
0
 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));
        }
Example #5
0
 public ActionResult About()
 {
     aboutManager.List();
     return(RedirectToAction("_AboutPartial"));
 }
        public ActionResult About()
        {
            var about = aboutManager.List();

            return(View(about));
        }