public async Task <IActionResult> Edit(long id, [Bind("VTID,VTFabrikat,VTSerienr,VTModel,VTType,VTAnskaffet,LiggerIvtk")] Vaerktoej vaerktoej)
        {
            if (id != vaerktoej.VTID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(vaerktoej);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!VaerktoejExists(vaerktoej.VTID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(vaerktoej));
        }
        public async Task <IActionResult> Edit(int id, [Bind("VTKID,VTKFabrikat,VTKSerienummer,VTKModel,VTKFarve,VTKEjesAf,VTKAnskaffet")] Vaerktoejskasse vaerktoejskasse)
        {
            if (id != vaerktoejskasse.VTKID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(vaerktoejskasse);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!VaerktoejskasseExists(vaerktoejskasse.VTKID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(vaerktoejskasse));
        }
        public async Task <IActionResult> Edit(int id, [Bind("HaandvaerkerID,HVFornavn,HVEfternavn,HVAnsaettelsedato,HVFagomraade")] Haandvaerker haandvaerker)
        {
            if (id != haandvaerker.HaandvaerkerID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(haandvaerker);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!HaandvaerkerExists(haandvaerker.HaandvaerkerID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(haandvaerker));
        }