コード例 #1
0
 public IActionResult GetById(long id)
 {
     Payment PaymentObj = null;
     try
     {
         PaymentObj = new Payment();
         PaymentObj = paymentBL.GetPaymentById(id);
         if (PaymentObj == null)
         {
             return NotFound();
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("Exception in getting Get Payment by id", e);
     }
     return new ObjectResult(PaymentObj);
 }