AspNet.StarterKits.Classifieds.Web.LocationCache.FetchAllLocations C# (CSharp) Method

FetchAllLocations() private static method

private static FetchAllLocations ( ) : List
return List
		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;
		}
	}