public void NewCurrency(Currency currency) { try { using (CurrencyAccessClient _currencyAccessClient = new CurrencyAccessClient(EndpointName.CurrencyAccess)) { _currencyAccessClient.Insert1(currency); } } catch (Exception) { throw; } }
public CurrencyCollection AllCurrency() { try { using (CurrencyAccessClient _currencyAccessClient = new CurrencyAccessClient(EndpointName.CurrencyAccess)) { return new CurrencyCollection(_currencyAccessClient.QueryAll()); } } catch (Exception) { throw; } }