DistrictsInTown.Api.Repositories.PlaceRepository.ToPlaceList C# (CSharp) Method

ToPlaceList() private static method

private static ToPlaceList ( IEnumerable places ) : IEnumerable
places IEnumerable
return IEnumerable
        private static IEnumerable<Place> ToPlaceList(IEnumerable<Places> places)
        {
            return places.Select(place => new Place
            {
                Latitude = place.Location.Latitude ?? 0D,
                Longitude = place.Location.Longitude ?? 0D,
                Score = place.Score,
                Source = place.Source,
                ZipCode = place.Zip
            });
        }
PlaceRepository