public IHttpActionResult DeleteBoardGame(int id) { BoardGame boardGame = _boardGame.GetBoardGameByID(id); if (boardGame == null) { return(NotFound()); } _boardGame.DeleteBoardGame(id); _boardGame.Save(); return(Ok(boardGame)); }
public void DeleteBoardGame(int inId, IBoardGameRepository boardGameRepository) { boardGameRepository.DeleteBoardGame(inId); }