Exemplo n.º 1
0
        public string TankTypeDescription(int countryId, int tankID)
        {
            TankKey tk = new TankKey()
            {
                CountryID = countryId, TankID = tankID
            };

            TankValue tValue;

            if (!_tanks.TryGetValue(tk, out tValue))
            {
                return("Unknown");
            }
            else
            {
                return(_tankTypeDescriptions.Description(tValue.TankType));
            }
        }