AspNet.StarterKits.Classifieds.Web.LocationCache.FetchAllLocations C# (CSharp) Метод

FetchAllLocations() приватный статический Метод

private static FetchAllLocations ( ) : List
Результат 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;
		}
	}