示例#1
0
        public Terminal GetDefaultTerminal()
        {
            Terminal terminal = Terminals.FirstOrDefault(x => x.Name.Equals(DefaultTerminalName, StringComparison.OrdinalIgnoreCase));

            if (terminal != null)
            {
                return(terminal);
            }
            else
            {
                ResetToDefaultTerminal();
            }

            return(Terminals.First());
        }
示例#2
0
 private Terminal getTerminal(Guid tId)
 {
     return(Terminals.First(ter => ter.Id == tId));
 }