public async Task <IActionResult> PutRappel(int id, Rappel rappel) { if (id != rappel.IdRappel) { return(BadRequest()); } _context.Entry(rappel).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!RappelExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutEvenement(int id, Evenement evenement) { if (id != evenement.IdEvenement) { return(BadRequest()); } _context.Entry(evenement).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!EvenementExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }