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

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

            return(View(about));
        }