public bool AbortGame(string hashedgameId) { try { GameDAL gdal = new GameDAL(); CustomCrypto unhash = new CustomCrypto(); int gameId = Convert.ToInt32(unhash.Decrypt(hashedgameId)); return(gdal.AbortGame(gameId)); } catch (CustomException e) { throw new CustomException(e.Message); } catch (Exception e) { logger.Error(e); throw new Exception("Oops! Some error occured."); } }