public void DeletePizzaSize(int pizzaSizeId)
        {
            var pizzaSize = GetPizzaSizeById(pizzaSizeId);

            if (pizzaSize != null)
            {
                _dbContext.Remove(pizzaSize);
                _dbContext.SaveChanges();
            }
        }
Example #2
0
        public void DeleteSize(int sizeId)
        {
            var size = GetSizeById(sizeId);

            if (size != null)
            {
                _dbContext.Remove(size);
                _dbContext.SaveChanges();
            }
        }
Example #3
0
        public void DeletePizza(int pizzaId)
        {
            var pizza = GetPizzaById(pizzaId);

            if (pizza != null)
            {
                _dbContext.Remove(pizza);
                _dbContext.SaveChanges();
            }
        }