Esempio n. 1
0
        public IActionResult BucketList()
        {
            var places   = locationDetailDAL.GetAllLocations();
            var lats     = locationDetailDAL.Latitudes(places);
            var longs    = locationDetailDAL.Longitudes(places);
            var names    = locationDetailDAL.Names(places);
            var location = new MapStuff {
                Latitudes = lats, Longitudes = longs, Names = names
            };

            return(View(location));
        }
Esempio n. 2
0
        public IActionResult Map(string origin, string type)
        {
            var places   = locationDetailDAL.GetAllLocations();
            var lats     = locationDetailDAL.Latitudes(places);
            var longs    = locationDetailDAL.Longitudes(places);
            var names    = locationDetailDAL.Names(places);
            var location = new MapStuff {
                Origin = origin, Type = type, Latitudes = lats, Longitudes = longs, Names = names
            };

            return(View(location));
        }