public async Task <IActionResult> Edit(int id, [Bind("AanbiederId,Name")] Aanbieder aanbieder)
        {
            if (id != aanbieder.AanbiederId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(aanbieder);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!AanbiederExists(aanbieder.AanbiederId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(aanbieder));
        }
        public async Task <IActionResult> Create([Bind("AanbiederId,Name")] Aanbieder aanbieder)
        {
            if (ModelState.IsValid)
            {
                _context.Add(aanbieder);
                await _context.SaveChangesAsync();

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