示例#1
0
        public dynamic Get(Guid id)
        {
            try
            {
                var        s    = this.ModelState;
                AccountBLL bll  = new AccountBLL();
                var        data = bll.GetAccountInfo(id);
                return(new { status = 0, result = data });
            }

            catch (ErrorMsgException ex)
            {
                return(new { status = ex.Status, message = ex.Message });
            }
            catch (Exception ex)
            {
                return(new { status = 500, message = ex.Message });
            }
        }