Esempio n. 1
0
        public static bool hasUser(string username, string password)
        {
            bool result;

            adapter = getNewAdapter();
            result  = 0 < adapter.GetCountByAll(username, password);
            adapter.Dispose();

            return(result);
        }
Esempio n. 2
0
        public static DataTable getAll()
        {
            DataTable table;

            adapter = getNewAdapter();
            table   = adapter.GetData();
            adapter.Dispose();

            return(table);
        }