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

            return(View(aboutList));
        }
Exemplo n.º 5
0
 public ActionResult About()
 {
     aboutManager.List();
     return(RedirectToAction("_AboutPartial"));
 }
Exemplo n.º 6
0
        public ActionResult About()
        {
            var about = aboutManager.List();

            return(View(about));
        }