public IActionResult MakePayment(PaymentAccount paymentAccount) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = _service.MakePayment(paymentAccount); if (result == null) { return(BadRequest()); } return(Ok(result)); }