public async Task <ActionResult> TrackPlayer(NbaPlayer player)
        {
            _playersFollowedDataAccessor.AddPlayerForUser(1, player);
            var trackerViewModel = await _nbaPlayerTrackerModelBuilder.BuildPlayerTrackerViewModel(1);

            return(View("PlayerTracker", trackerViewModel));
        }
Пример #2
0
        public async Task <IActionResult> Index()
        {
            var trackerViewModel = await _nbaPlayerTrackerModelBuilder.BuildPlayerTrackerViewModel(1);

            return(View("PlayerTracker", trackerViewModel));
        }