public static void RefreshCommodities()
        {
            DispositionDatabase db = new DispositionDatabase();
            var commodities = db.GetCommodities();

            CacheItemPolicy cacheItemPolicy = new CacheItemPolicy();
            cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddDays(1);
            cache.Set("Commodities", commodities, cacheItemPolicy);
        }
        public static void RefreshDefectDetails()
        {
            DispositionDatabase db = new DispositionDatabase();
            var details = db.GetDefectDetails();

            CacheItemPolicy cacheItemPolicy = new CacheItemPolicy();
            cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddDays(1);
            cache.Set("DefectDetails", details, cacheItemPolicy);
        }
        public static void RefreshSeatSides()
        {
            DispositionDatabase db = new DispositionDatabase();
            var sides = db.GetSeatSides();

            CacheItemPolicy cacheItemPolicy = new CacheItemPolicy();
            cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddDays(1);
            cache.Set("SeatSides", sides, cacheItemPolicy);
        }
        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 static void RefreshDefect2Commodities()
        {
            DispositionDatabase db = new DispositionDatabase();
            var xref = db.GetDefect2Commodities();

            CacheItemPolicy cacheItemPolicy = new CacheItemPolicy();
            cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddDays(1);
            cache.Set("Defect2Commodities", xref, cacheItemPolicy);
        }
 public void Delete(int id)
 {
     DispositionDatabase dbDisposition = new DispositionDatabase();
     dbDisposition.DeleteResponsibilityById(id);
 }
 public void Put([FromBody]Responsibility responsibility)
 {
     DispositionDatabase dbDisposition = new DispositionDatabase();
     dbDisposition.UpdateResponsibility(responsibility);
 }
 public void Responsibilities([FromBody]Responsibility responsibility)
 {
     DispositionDatabase dbDisposition = new DispositionDatabase();
     dbDisposition.CreateResponsibility(responsibility);
 }
 public Responsibility Responsibilities(int id)
 {
     DispositionDatabase dbDisposition = new DispositionDatabase();
     return dbDisposition.GetResponsibilityById(id);
 }
 public IEnumerable<Responsibility> Responsibilities()
 {
     DispositionDatabase dbDisposition = new DispositionDatabase();
     return dbDisposition.GetResponsibilities();
 }