public async Task <IActionResult> Put([FromRoute] int id, [FromBody] BulletPage bulletPage) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != bulletPage.Id) { return(BadRequest()); } _context.Entry(bulletPage).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BulletPageExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }