public IHttpActionResult DeleteBoardGame(int id)
        {
            BoardGame boardGame = _boardGame.GetBoardGameByID(id);

            if (boardGame == null)
            {
                return(NotFound());
            }

            _boardGame.DeleteBoardGame(id);
            _boardGame.Save();

            return(Ok(boardGame));
        }
Exemple #2
0
 public void DeleteBoardGame(int inId, IBoardGameRepository boardGameRepository)
 {
     boardGameRepository.DeleteBoardGame(inId);
 }