Example #1
0
        public Basket Update(Basket basket)
        {
            var db = _tmsDbContextFactory.Create();

            var originalBasket = db.Baskets.FirstOrDefault(b => b.Id == basket.Id);

            if (originalBasket == null)
            {
                throw new ObjectNotFoundException();
            }

            originalBasket.DisableDate = basket.DisableDate;

            db.SaveChanges();

            return basket;
        }
Example #2
0
 public Basket Insert(Basket basket)
 {
     throw new System.NotImplementedException();
 }