public object Do_DeleteCart(BaseApi baseApi) { DeleteCartParam deleteCartParam = JsonConvert.DeserializeObject <DeleteCartParam>(baseApi.param.ToString()); if (deleteCartParam == null) { throw new ApiException(CodeMessage.InvalidParam, "InvalidParam"); } OrderDao orderDao = new OrderDao(); if (!orderDao.DeleteCart(deleteCartParam.cartId)) { throw new ApiException(CodeMessage.UpdateCartError, "UpdateCartError"); } return(""); }