//done public async Task <string> DepositToIbanAsync(SepidDepositParam depositParam) { using (var request_ = new HttpRequestMessage()) { var url = $"{barcodeBaseUrl}/api/V1/IBAN/depositToIban"; request_.RequestUri = new Uri(url, System.UriKind.RelativeOrAbsolute); var content_ = new StringContent(JsonConvert.SerializeObject(depositParam), Encoding.UTF8, "application/json"); request_.Content = content_; request_.Method = HttpMethod.Post; var response_ = await _sepidHttpClient.SendAsync(request_, default(CancellationToken)).ConfigureAwait(false); if (!response_.IsSuccessStatusCode) { throw new Exception(response_.ReasonPhrase); } var apiResponse = await response_.Content.ReadAsStringAsync(); return(apiResponse); } }
public async Task <ActionResult <string> > DepositToIban(SepidDepositParam depositParam) { return(await _sepidService.DepositToIbanAsync(depositParam)); }