public void EditPizza(Pizzas Pizza)
        {
            // would add it if it didn't exist
            _db.Update(Pizza);

            // sometimes we need to do it a different way
            //var trackedMovie = _db.Movie.Find(movie.Id);
            //_db.Entry(trackedMovie).CurrentValues.SetValues(movie);
        }
예제 #2
0
 public void EditOrder(Orders order)
 {
     _db.Update(order);
 }