示例#1
0
        public string CheckAccessTokenUser(string AccessToken)
        {
            System.Data.DataTable dataTable;
            try
            {
                UserQuery UserQuery = new UserQuery(language);
                dataTable = conn_db.ReadTable(UserQuery.CheckAccessTokenUser(AccessToken));
            }

            catch
            {
                throw new EmptyViewException(language);
            }

            if (dataTable.Rows.Count == 0)
            {
                throw new EmptyViewException(language);
            }

            return(dataTable.Rows[0]["ID"].ToString());
        }