Beispiel #1
0
        public JsonResult ChangeCardNoSub(int id, string CardNo)
        {
            IClubCardMgm cardMgm = new ClubCardMgm();

            ReturnedData data = new ReturnedData();
            try
            {
                ClubCardVO card = cardMgm.GetClubCardByID(id);
                if (card.CardStatus == 1)
                {
                    cardMgm.UpdateClubCardNo(id, CardNo);
                    data.Success = true;
                    data.Message = "会员卡补卡成功";
                }
                else
                {
                    data.Success = false;
                    data.Message = "该会员卡不处于挂失状态,不需要补卡";
                }

            }
            catch (Exception ex)
            {
                LogHandler.Error(ex.ToString());
                data.Success = false;
                data.Message = "会员卡补卡成功";
            }

            return Json(data, JsonRequestBehavior.AllowGet);
        }