public async Task <IActionResult> PutKunde_KundeType(int id, Kunde_KundeType kunde_KundeType) { if (id != kunde_KundeType.Id) { return(BadRequest()); } _context.Entry(kunde_KundeType).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Kunde_KundeTypeExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutPostAdresse(int id, PostAdresse postAdresse) { if (id != postAdresse.PostNr) { return(BadRequest()); } _context.Entry(postAdresse).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PostAdresseExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }