public List <SelectListItem> GetCurrencies()
        {
            var currencies = soapClient.getAllCrossNames(LanguageType.sv);

            return(currencies?
                   .Where(x => Currencies.Contains(x.seriesname))
                   .Select(item => new SelectListItem {
                Text = item.seriesname, Value = item.seriesid
            })
                   .ToList());
        }
Ejemplo n.º 2
0
        private static void SweaService()
        {
            SweaWebServicePortTypeClient swea = new SweaWebServicePortTypeClient("SweaWebServiceHttpSoap12Endpoint");

            var result = swea.getAllCrossNames(LanguageType.sv);

            foreach (var item in result)
            {
                Console.WriteLine($"ID: {item.seriesid} - Name: {item.seriesname} - Description: {item.seriesdescription}");
            }

            Console.ReadLine();
        }