public ActionResult AjaxEditPayAndShipType(CheckOutContext context) { if (context == null) { throw new BusinessException("无效的请求"); } PaymentCategory paymentCate; int shipTypeID; if (!Enum.TryParse(context.PaymentCategoryID, out paymentCate) || !int.TryParse(context.ShipTypeID, out shipTypeID)) { throw new BusinessException("无效的请求"); } CustomerShippingAddresssFacade.UpdateCustomerContactInfo(context.ShippingAddressID, (int)paymentCate, shipTypeID, CurrUser.UserSysNo); return(Content("y")); }