public async Task <IActionResult> PutEncounterMaterial(int id, EncounterMaterial encounterMaterial) { if (id != encounterMaterial.Id) { return(BadRequest()); } _context.Entry(encounterMaterial).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!EncounterMaterialExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutAfire(int id, Afire afire) { if (id != afire.Id) { return(BadRequest()); } _context.Entry(afire).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AfireExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }