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); }
public ActionResult Index() { return(View(bransManager.List())); }