private static List<CachedLocation> FetchAllLocations()
{
List<CachedLocation> list = new List<CachedLocation>();
LocationsDataComponent.LocationsDataTable locationsResult = LocationsDB.GetAllLocations();
foreach (LocationsDataComponent.LocationsRow location in locationsResult)
{
list.Add(new CachedLocation(location.Id, location.Name));
}
return list;
}
}