public object GetSecondCurrency(string currency, int days) { NBPSource kurKraju = new NBPSource(days); try { double rate = kurKraju.LoadRate(currency); Debug.WriteLine("Kurs 2 : " + currency + " z przed : " + days.ToString() + " wynosi : " + rate.ToString("#.####")); return(new object[] { currency, rate }); } catch (Exception ex) { Debug.WriteLine(ex.ToString()); throw new InvalidLaborException(ex.ToString()); } }
/// <summary> /// The GetFirstCurrency. /// </summary> /// <param name="currency">The currency<see cref="string"/>.</param> /// <param name="days">The days<see cref="int"/>.</param> /// <returns>The <see cref="object"/>.</returns> public object GetFirstCurrency(string currency, int days) { //Thread.Sleep(2000); NBPSource kurKraju = new NBPSource(days); try { double rate = kurKraju.LoadRate(currency); Debug.WriteLine("Rate 1 : " + currency + " days past: " + days.ToString() + " amount : " + rate.ToString("#.####")); return(new object[] { currency, rate }); } catch (Exception ex) { Debug.WriteLine(ex.ToString()); throw new InvalidLaborException(ex.ToString()); } }