/// <summary>
        /// Get NPSMapElement using the combined value
        /// </summary>
        /// <param name="mappingValue"></param>
        /// <returns></returns>
        public NPSMapElement GetElementByMapping(string mappingValue)
        {
            if (_MappingsCountry != null)
            {
                NPSMapElement element =
                    _MappingsCountry.Values.SingleOrDefault(
                        v => v.MapFrom.Equals(mappingValue, StringComparison.InvariantCultureIgnoreCase));

                return(element);
            }

            return(null);
        }
 /// <summary>
 /// get NPSMapElement
 /// </summary>
 /// <param name="Country"></param>
 /// <returns></returns>
 public NPSMapElement GetNPSConfigSection(string Country)
 {
     if (_MappingsCountry != null)
     {
         NPSMapElement element = null;
         if (_MappingsCountry.TryGetValue(Country, out element))
         {
             return(element);
         }
     }
     return(new NPSMapElement()
     {
         Country = Country, HasPHCharge = true
     });
 }
Example #3
0
 public NPSConfigurationSection()
 {
     url = new NPSMapElement();
 }