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