Example #1
0
 public JsonResult ManualRefund(decimal orderId)
 {
     try
     {
         bool result = OnlineOrderServices.ManualRefund(orderId, Server.MapPath("~"));
         if (!result)
         {
             throw new MyException("退款失败");
         }
         return(Json(MyResult.Success()));
     }
     catch (MyException ex)
     {
         return(Json(MyResult.Error(ex.Message)));
     }
     catch (Exception ex)
     {
         ExceptionsServices.AddExceptions(ex, "手动退款失败");
         return(Json(MyResult.Error("手动退款失败")));
     }
 }