public bool ChangePizzaOrder(PizzaOrder pizzaOrder)
        {
            if (db.PizzaOrders.Where(po => po.OrderID == pizzaOrder.OrderID).Count() != 0)
            {
                var entry = db.Entry <PizzaOrder>(pizzaOrder);

                entry.State = EntityState.Modified;
            }

            return(db.SaveChanges() > 0);
        }
        public bool DeletePizzaOrder(PizzaOrder pizzaOrder)
        {
            if (db.PizzaOrders.Where(po => po == pizzaOrder).Count() != 0)
            {
                var entry = db.Entry <PizzaOrder>(pizzaOrder);

                entry.State = EntityState.Deleted;
            }

            return(db.SaveChanges() > 0);
        }
        public bool InsertPizzaOrder(PizzaOrder newPizzaOrder)
        {
            db.PizzaOrders.Add(newPizzaOrder);

            return(db.SaveChanges() > 0);
        }