public IHttpActionResult PutBoardGame(int id, BoardGame boardGame)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != boardGame.Id)
            {
                return(BadRequest());
            }

            _boardGame.UpdateBoardGame(boardGame);

            try
            {
                _boardGame.Save();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!_boardGame.BoardGameExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }