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