public Terminal GetDefaultTerminal() { Terminal terminal = Terminals.FirstOrDefault(x => x.Name.Equals(DefaultTerminalName, StringComparison.OrdinalIgnoreCase)); if (terminal != null) { return(terminal); } else { ResetToDefaultTerminal(); } return(Terminals.First()); }
private Terminal getTerminal(Guid tId) { return(Terminals.First(ter => ter.Id == tId)); }