public void Update(PaymentType paymentType)
 {
     db.Entry(paymentType).State = EntityState.Modified;
     db.SaveChanges();
 }
 public void Add(Order order)
 {
     db.Orders.Add(order);
     db.SaveChanges();
     db.Entry(order).State = EntityState.Detached;
 }
 public void Update(Address address)
 {
     db.Entry(address).State = EntityState.Modified;
     db.SaveChanges();
 }
 public void Update(Carousel carousel)
 {
     db.Entry(carousel).State = EntityState.Modified;
     db.SaveChanges();
 }
Exemplo n.º 5
0
 public void Update(MenuCategory menuCategory)
 {
     db.Entry(menuCategory).State = EntityState.Modified;
     db.SaveChanges();
 }
Exemplo n.º 6
0
 public void Update(User user)
 {
     db.Entry(user).State = EntityState.Modified;
     db.SaveChanges();
 }
 public void Update(Dish dish)
 {
     db.Entry(dish).State = EntityState.Modified;
     db.SaveChanges();
 }