Example #1
0
        public int GetSupplierIdByAccessToken(string accessToken)
        {
            UserQuery userQuery = new UserQuery(language);

            System.Data.DataTable dataTable = conn_db.ReadTable(userQuery.GetSupplierIdByAccessToken(accessToken));
            if (dataTable.Rows.Count > 0)
            {
                return(Convert.ToInt32(dataTable.Rows[0]["id"].ToString()));
            }
            else
            {
                return(-1);
            }
        }