public JsonResult GetCardPkgItemDetail() { ReturnedData data = new ReturnedData(); try { int id = NullHelper.Convert<int>(Request["itemId"], -1); ClubCardMgm cardMgm = new ClubCardMgm(); var item = cardMgm.GetClubCardPkgDetailByID(id); if (item != null && item.ItemID > 0) { data.Success = true; data.Data = item; } else { data.Success = false; data.Message = "该消费项目不存在"; } } catch(Exception ex) { data.Success = false; data.Message = "出现错误,请联系维护人员"; data.Error = ex.ToString(); LogHandler.Error(ex.Message.ToString()); } return Json(data, JsonRequestBehavior.AllowGet); }