public void Put(int id, [FromBody] Review review) { review.ReviewId = id; _db.Entry(review).State = EntityState.Modified; _db.SaveChanges(); }
public void Put(int id, [FromBody] Game game) { game.GameId = id; _db.Entry(game).State = EntityState.Modified; _db.SaveChanges(); }