Example #1
0
        /// <summary>
        /// 修改会员信息
        /// </summary>
        /// <param name="arg"></param>
        /// <returns></returns>
        private dynamic UpdateMember(dynamic arg)
        {
            try
            {
                //得到请求参数
                MemberUpdateReqDTO request = base.BindObject <MemberUpdateReqDTO>();

                string str = _hmjMember.UpdateMember(request);

                if (str == "1")
                {
                    return(ResponseJson(true, "OK"));
                }

                return(ResponseJson(false, str));
            }
            catch (Exception ex)
            {
                WriteLog("修改会员信息", ex);
                return(ResponseJsonError(false, error_message, ex));
            }
        }
Example #2
0
        /// <summary>
        /// 测试
        /// </summary>
        /// <param name="arg"></param>
        /// <returns></returns>
        private dynamic PostTest(dynamic arg)
        {
            try
            {
                //得到请求参数
                MemberUpdateReqDTO request = base.BindObject <MemberUpdateReqDTO>();
                string             id      = "83";

                //根据memberid得到会员详情
                MemberResDTO res = _hmjMember.GetMemberModel(id);

                MemberSearch one = new MemberSearch();

                //得到会员集合
                List <MemberResDTO> list = _hmjMember.GetMemberList(one);

                return(ResponseJson(true, "ok", res));
            }
            catch (Exception ex)
            {
                return(ResponseJsonError(false, "系统错误:" + ex.Message, ex));
            }
        }