public ActionResult <PaymentDetail> CreatePayment(PaymentCreate p) { var Payment = this.mapper.Map <Payment>(p); Payment = this.PaymentRepository.Create(Payment); return(this.mapper.Map <PaymentDetail>(Payment)); }
public async Task <iBanFirstApiResponse <Payment> > Create(PaymentCreate payment) { return(await _client.MakeApiRequest <Payment>("payments/", RequestMethod.POST, payment)); }
public async Task<PaymentCreate.response> PaymentCreate(PaymentCreate.request request, CancellationToken? token = null) { return await SendAsync<PaymentCreate.response>(request.ToXmlString(), token.GetValueOrDefault(CancellationToken.None)); }