public Exchange GetGems(int coins) { var request = new CoinsExchangeRequest { Quantity = coins }; var response = this.serviceClient.Send<ExchangeDTO>(request); var exchange = this.exchangeConverter.Convert(response.Content, response); // Patch the quantity because it is not a property of the response object exchange.Send = coins; return exchange; }
public Exchange GetGems(int coins) { var request = new CoinsExchangeRequest { Quantity = coins }; var response = this.serviceClient.Send <ExchangeDTO>(request); var exchange = this.exchangeConverter.Convert(response.Content, response); // Patch the quantity because it is not a property of the response object exchange.Send = coins; return(exchange); }