Exemple #1
0
        public LocationCollection GetLocationCollection(string whereExpression, string orderByExpression)
        {
            LocationData       data = new LocationData();
            LocationCollection col  = new LocationCollection();

            try
            {
                col = data.GetAllLocationsDynamicCollection(whereExpression, orderByExpression);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetLocationCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
Exemple #2
0
        public LocationCollection GetAllLocationCollection()
        {
            LocationData       data = new LocationData();
            LocationCollection col  = new LocationCollection();

            try
            {
                col = data.GetAllLocationsCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllLocationCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }