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