public async Task <IActionResult> Edit(Guid id, [Bind("ID,BrandName")] BoardGameBrand boardGameBrand)
        {
            if (id != boardGameBrand.ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(boardGameBrand);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!BoardGameBrandExists(boardGameBrand.ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(boardGameBrand));
        }
        public async Task <IActionResult> Create([Bind("ID,BrandName")] BoardGameBrand boardGameBrand)
        {
            if (ModelState.IsValid)
            {
                boardGameBrand.ID = Guid.NewGuid();
                _context.Add(boardGameBrand);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(boardGameBrand));
        }