Example #1
0
 public JsonResult Delete(string parkingId)
 {
     try
     {
         bool result = ParkingServices.Delete(parkingId);
         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("删除失败")));
     }
 }