示例#1
0
        public AddressCollection GetAddressCollection(string whereExpression, string orderByExpression)
        {
            AddressData       data = new AddressData();
            AddressCollection col  = new AddressCollection();

            try
            {
                col = data.GetAddressesDynamicCollection(whereExpression, orderByExpression);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAddressCollection");
                throw(ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
示例#2
0
        public AddressCollection GetAllAddresssCollection()
        {
            AddressCollection cols = new AddressCollection();
            AddressData       data = new AddressData();

            try
            {
                cols = data.GetAllAddressesCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllAddresss()");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(cols);
        }