public async Task <IActionResult> PutAufgaben(int id, Aufgaben aufgaben) { if (id != aufgaben.ID) { return(BadRequest()); } _context.Entry(aufgaben).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AufgabenExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }