Beispiel #1
0
 public void UpdatePet(Pet pet)
 {
     _lunaPetShopContext.Entry(pet).State = EntityState.Modified;
     _lunaPetShopContext.SaveChanges();
 }
Beispiel #2
0
 public void Update(Product product)
 {
     _lunaPetShopContext.Entry(product).State = EntityState.Modified;
     _lunaPetShopContext.SaveChanges();
 }
Beispiel #3
0
 public void UpdateUser(User user)
 {
     _lunaPetShopContext.Entry(user).State = EntityState.Modified;
     _lunaPetShopContext.SaveChanges();
 }