public LT_LandCountryInfo FindAltinnCodeListNameForCountryCode(string countryCode)
        {
            // Altinn prod sends country code as two letters XX per https://no.wikipedia.org/wiki/ISO_3166-1_alfa-2
            // Match letters with "Value3" field of LT_Land codelist (XX)
            // Return the country name and the Value 2 and LT code in the Code field

            LT_LandCountryInfo returnData = null;


            // Did not get any data
            if (String.IsNullOrEmpty(countryCode))
            {
                return(returnData);                                   // null
            }
            // Did no get a valid two digit CC
            Match CCValid = Regex.Match(countryCode.ToUpper(), "^[A-Z]{2}$");

            if (!CCValid.Success)
            {
                return(returnData);                  // null
            }
            try
            {
                no.altinn.infopathCodeList.CodeList codeListLT_Land = GetAltinnCodeList("LT_Land", GetTheFormLanguageCode());

                for (int lt = 0; lt < codeListLT_Land.CodeListRows.Length; lt++)
                {
                    if (codeListLT_Land.CodeListRows[lt].Value3.ToUpper().Contains(countryCode.ToUpper()))
                    {
                        returnData = new LT_LandCountryInfo(codeListLT_Land.CodeListRows[lt].Value2, codeListLT_Land.CodeListRows[lt].Code);
                    }
                }
            }
            catch { }

            return(returnData);
        }
        public bool GetRpasFeeFromCodeList()
        {
            // Kodeliste: LT_RPAS_AVGIFT
            // Verdi 1: Avgift for oppstart
            // Verdi 2: Avgift for avslutting (not implemented)
            // Usage -- the code will pick the last entry in the list

            bool status = false;

            try
            {
                no.altinn.infopathCodeList.CodeList feeCodeList = GetAltinnCodeList("LT_RPAS_AVGIFT", 1044);

                if (feeCodeList.CodeListRows.Length > 0)
                {
                    _feeForOppstart   = feeCodeList.CodeListRows[feeCodeList.CodeListRows.Length - 1].Value1;
                    _feeForAvslutning = feeCodeList.CodeListRows[feeCodeList.CodeListRows.Length - 1].Value2;
                    status            = true;
                }
            }
            catch { }

            return(status);
        }