public void Update(Basket basket) { context.Entry(basket).State = System.Data.Entity.EntityState.Modified; context.SaveChanges(); }
public Basket Create(Basket basket) { context.Baskets.Add(basket); context.SaveChanges(); return basket; }