public List <Store> Gets(int nBUID, int nUserID) { Connection.Open(); Command.CommandText = StoreDA.Gets(nBUID, nUserID); SqlDataReader reader = Command.ExecuteReader(); Store _oStore = new Store(); List <Store> _oStores = new List <Store>(); if (reader.HasRows) { _oStores = MakeObjects(reader); } reader.Close(); Connection.Close(); return(_oStores); }