Esempio n. 1
0
 public IActionResult Create([FromBody] CreatePaymentDetailView view)
 {
     try
     {
         _service.Create(view);
         return(Ok());
     }
     catch (NextPayException exception)
     {
         return(BadRequest(exception.Message));
     }
     catch (Exception)
     {
         return(BadRequest());
     }
 }
Esempio n. 2
0
        public IActionResult PostPaymentDetail(PaymentDetail paymentDetail)
        {
            _paymentDetailService.Create(paymentDetail);

            return(CreatedAtAction("GetPaymentDetail", new { id = paymentDetail.Id }, paymentDetail));
        }