public async Task <IActionResult> Edit([FromBody] MenuDto menuDto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var menu = await _context.Menus.FindAsync(menuDto.MenuId);

            if (menu != null)
            {
                try
                {
                    menu.Name        = menuDto.Name;
                    menu.CostPerHead = menuDto.CostPerHead;
                    menu.Starter     = menuDto.Starter;
                    menu.Main        = menuDto.Main;
                    menu.Dessert     = menuDto.Dessert;
                    await _context.SaveChangesAsync();

                    return(Ok());
                }
                catch (Exception e)
                {
                }
            }

            return(NotFound());
        }
        public async Task <IActionResult> EditReservation([FromBody] FoodBookingDto bookingDto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var booking = await _context.FoodBookings.FindAsync(bookingDto.EventId);

            if (booking != null)
            {
                try
                {
                    booking.MenuNumber = bookingDto.MenuId;
                    await _context.SaveChangesAsync();

                    return(Ok());
                }
                catch (Exception e)
                {
                }
            }

            return(NotFound());
        }