public bool Find(int intEmployeeID) { Database data = new Database(); SqlDataReader reader = data.FindUser(intEmployeeID); if (reader.Read()) { LoadFromReader(reader); data.Close(); data.Dispose(); return true; } else { data.Close(); data.Dispose(); return false; } }
public bool Find(string strUserName) { Database data = new Database(); SqlDataReader reader = data.FindUser(strUserName); if (reader.Read()) { LoadFromReader(reader); data.Close(); data.Dispose(); return true; } else { data.Close(); data.Dispose(); return false; } }