Example #1
0
        public static List <Brans> GetCategoriesFromCache()
        {
            var result = WebCache.Get("brans-cache");

            if (result == null)
            {
                BransManager bransManager = new BransManager();
                result = bransManager.List();

                WebCache.Set("brans-cache", result, 20, true);
            }

            return(result);
        }
Example #2
0
 public ActionResult Index()
 {
     return(View(bransManager.List()));
 }