public void Put(int id, [FromBody] Player player) { player.PlayerId = id; _db.Entry(player).State = EntityState.Modified; _db.SaveChanges(); }