public static void RefreshResponsibilities() { DispositionDatabase db = new DispositionDatabase(); var resp = db.GetResponsibilities(); CacheItemPolicy cacheItemPolicy = new CacheItemPolicy(); cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddDays(1); cache.Set("Responsibilities", resp, cacheItemPolicy); }
public IEnumerable<Responsibility> Responsibilities() { DispositionDatabase dbDisposition = new DispositionDatabase(); return dbDisposition.GetResponsibilities(); }