public static ContactsBackupCollection GetbyUser(string CreatedUser) { ContactsBackupCollection collection = new ContactsBackupCollection(); ContactsBackup obj; using (var reader = SqlHelper.ExecuteReader("ContactsBackup_GetAll_byUser", new SqlParameter("@CreatedUser", CreatedUser))) { while (reader.Read()) { obj = GetItemFromReader(reader); collection.Add(obj); } } return(collection); }
public static ContactsBackupCollection GetSimPort() { ContactsBackupCollection collection = new ContactsBackupCollection(); using (var reader = SqlHelper.ExecuteReader("ContactsBackup_GetComPort", null)) { while (reader.Read()) { ContactsBackup obj = new ContactsBackup(); obj = GetItemFromReader(reader); collection.Add(obj); } } return(collection); }