public IActionResult Location(int locationId)
        {
            var locationVeiwModel = new LocationViewModel
            {
                RollerSkateMapLocation = _locationRepository.GetRollerSkateMapLocation(locationId),
                GoogleApiKey           = _appConfiguration.GoogleMapApiKey
            };

            foreach (var comment in locationVeiwModel.RollerSkateMapLocation.Comments)
            {
                comment.User = _userRepository.GetUser(comment.UserId ?? -1);
            }

            return(View(locationVeiwModel));
        }
예제 #2
0
 public IActionResult GetRollerSkateMapLocationById(int id)
 {
     return(Ok(_rollerSkateMapLocationRepository.GetRollerSkateMapLocation(id)));
 }