public static IEnumerable <ActivityCoordinates> NewActivityCoordinatesList()
        {
            var activityCoordinate1 = new ActivityCoordinates()
            {
                Id           = 1,
                UserID       = 123,
                ActvityID    = 1L,
                ActivityType = ActivityType.Ride.ToString(),
                Latitude     = 30.0F,
                Longitude    = 40.0F
            };

            var activityCoordinate2 = new ActivityCoordinates()
            {
                Id           = 2,
                UserID       = 123,
                ActvityID    = 2L,
                ActivityType = ActivityType.Ride.ToString(),
                Latitude     = 30.6F,
                Longitude    = 40.6F
            };

            var activityCoordinates = new List <ActivityCoordinates>
            {
                activityCoordinate1,
                activityCoordinate2,
            };

            return(activityCoordinates);
        }
        public async Task <PartialViewResult> LoadMapByTypePartial(string type)
        {
            if (!User.Identity.IsAuthenticated)
            {
                var exampleActivityCoordinatesByType = ActivityCoordinates.GetActivityCoordinatesByType(ExampleData.ActivityCoordinatesList(), type);
                return(PartialView("_BingMapPartial", exampleActivityCoordinatesByType));
            }

            _httpContextHelper.Context = HttpContext;
            string accessToken = _httpContextHelper.getAccessToken();
            int    stravaId    = Convert.ToInt32(User.FindFirst("stravaId").Value);

            var activityCoordinates       = (await mapCoordinatesService.GetActivityCoordinates(accessToken, stravaId)).ToList();
            var activityCoordinatesByType = ActivityCoordinates.GetActivityCoordinatesByType(activityCoordinates, type);

            return(PartialView("_BingMapPartial", activityCoordinatesByType));
        }