Пример #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);
        }
Пример #2
0
 public ActionResult About()
 {
     return(PartialView("_About", aboutmanaer.List().FirstOrDefault()));
 }
 public ActionResult Index()
 {
     return(View(aboutManager.List()));
 }
Пример #4
0
        // GET: About
        public ActionResult Index()
        {
            var aboutList = aboutManager.List();

            return(View(aboutList));
        }
Пример #5
0
 public ActionResult About()
 {
     aboutManager.List();
     return(RedirectToAction("_AboutPartial"));
 }
Пример #6
0
        public ActionResult About()
        {
            var about = aboutManager.List();

            return(View(about));
        }