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); }
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); }