public void SaveError(Model.Custom.CustomErrorException exception)
 {
     using (var service = new MoneyGramWebServiceClient.MoneyGramWebServiceClient())
     {
         service.SaveError(exception);
     }
 }
        Model.Currency[] GetCurrencies()
        {
            try
            {
                using (var service = new MoneyGramWebServiceClient.MoneyGramWebServiceClient())
                {
                    return(service.GetCurrencies());
                }
            }
            catch (Exception ex)
            {
                //wcf.SaveException(new CustomErrorException(ex));
            }

            return(null);
        }
        public string SaveTransaction(string currency, int customerID, decimal amount)
        {
            if (amount < 1)
            {
                //powino byc przekierowanie i do logu
                throw new Exception("Bledna wartosc");
            }

            string SaveTransactionRes = string.Empty;

            //string SaveTransaction(string currencySymbol, string customerName, decimal amount)
            using (var service = new MoneyGramWebServiceClient.MoneyGramWebServiceClient())
            {
                SaveTransactionRes = service.SaveTransaction(currency, customerID.ToString(), amount);
            }

            return(SaveTransactionRes);
        }