/// <summary> /// ejecuta un comando en la partida /// </summary> /// <returns>-1 si se corrio con error, 0 caso contrario</returns> public bool RunCommand(ICommand cmd, int roundId) { var result = false; var round = Rounds.FirstOrDefault(x => x.RoundId == roundId); try { _execute.Run(round, cmd); result = true; } catch (Exception ex) { Console.WriteLine(ex.Message); result = false; } return(result); }