コード例 #1
0
        public HttpResponseMessage GetMember([FromUri] string Param)
        {
            try
            {
                AccountProvider _Provider = new AccountProvider();
                var             result    = _Provider.GetMember(Param);
                return(Request.CreateResponse(HttpStatusCode.OK, result));
            }
            catch (Exception ex)
            {
                LogFactory _LogFactory = new LogFactory(this.GetType());
                _LogFactory.CreateLog(LogType.Error, "获取用户详细信息", "GetMember", ex);

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