public async Task <IActionResult> PutHaandvaerker(int id, Haandvaerker haandvaerker) { if (id != haandvaerker.HaandvaerkerId) { return(BadRequest()); } _context.Entry(haandvaerker).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!HaandvaerkerExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutVaerktoej(int id, Vaerktoej vaerktoej) { if (id != vaerktoej.VTId) { return(BadRequest()); } _context.Entry(vaerktoej).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!VaerktoejExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }