public async Task ReservePayment(Payment payment) { await _cardIssuerApi.ReservePayment(); Console.WriteLine($"[{DateTime.Now.Hour}:{DateTime.Now.Minute}:{DateTime.Now.Second}.{DateTime.Now.Millisecond}] Mokėjimas sėkmingai užrezervuotas. Mokėjimo ID: {payment.Id}"); await _merchantService.AddPayment(payment); }
public async Task <IActionResult> AddPayment([FromBody] Payment request) { await _merchantService.AddPayment(request); return(Ok()); }