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);
 }