public IActionResult UpdatePizza(long id, [FromBody] PizzaDto updatedPizza)
        {
            var updatingPizza = _context.Pizzas.IgnoreQueryFilters()
                                .FirstOrDefault(x => x.Id == id);

            if (updatingPizza == null)
            {
                return(BadRequest(new
                {
                    Success = false,
                    Message = $"Couldn't find a Pizza with the ID {id}!"
                }));
            }

            updatingPizza.Name   = updatedPizza.Name;
            updatingPizza.Active = updatedPizza.Active;
            _context.SaveChanges();

            return(Ok(new
            {
                Success = true,
                Pizzas = _context.Pizzas.ToList()
            }));
        }
        public IActionResult InsertPizza([FromBody] PizzaDto newPizza)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(new
                {
                    Success = false,
                    Message = ModelState.Values.FirstOrDefault()?.Errors.FirstOrDefault()?.ErrorMessage
                }));
            }

            var Pizza = new Pizza
            {
                Name = newPizza.Name
            };

            _context.Pizzas.Add(Pizza);
            _context.SaveChanges();
            return(Ok(new
            {
                Success = true,
                Pizzas = _context.Pizzas.ToList()
            }));
        }