public static bool hasUser(string username, string password) { bool result; adapter = getNewAdapter(); result = 0 < adapter.GetCountByAll(username, password); adapter.Dispose(); return(result); }
public static DataTable getAll() { DataTable table; adapter = getNewAdapter(); table = adapter.GetData(); adapter.Dispose(); return(table); }