Exemplo n.º 1
0
        private static void BindMember()
        {
            BindMemberParam _BindMemberParam = new BindMemberParam();

            _BindMemberParam.MemberCode = "E281600750M";
            _BindMemberParam.UserName   = "******";
            _BindMemberParam.UserKey    = "3487f43f-b514-11e6-a9fa-00ffc891ca91";
            AccountProvider _AccountProvider = new AccountProvider();

            _AccountProvider.BindMember(_BindMemberParam);
        }
Exemplo n.º 2
0
        public HttpResponseMessage BindMember([FromBody] BindMemberParam Param)
        {
            try
            {
                AccountProvider _Provider = new AccountProvider();
                var             result    = _Provider.BindMember(Param);
                return(Request.CreateResponse(HttpStatusCode.OK, result));
            }
            catch (Exception ex)
            {
                LogFactory _LogFactory = new LogFactory(this.GetType());
                _LogFactory.CreateLog(LogType.Error, "注册用户绑定", "BindMember", ex);

                return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
            }
        }