public ActionResult <Player> Edit(int id, [FromBody] Player editedPlayer) { Player updatedPlayer = _pr.EditPlayer(id, editedPlayer); if (updatedPlayer == null) { return(BadRequest("haters gonna hate")); } return(Ok(updatedPlayer)); }