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; }
public Basket Insert(Basket basket) { throw new System.NotImplementedException(); }