public void BuyFundDriver(ConsoleKeyInfo keyInfo) { try { _game.BuyFundDriver((int)keyInfo.Key - 64); } catch (Exception exp) { PrettyConsole.WriteLineColor(ConsoleColor.Red, "Error: {0}", exp); } DisplayGameData(GetGameData()); }
public BuyItemModel BuyFundDriver(int id) { var buyResult = _gameManager.BuyFundDriver(id); return(buyResult != null?_fundsDriverBuyinfoModelMapper.Map(buyResult) : null); }