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