Ejemplo n.º 1
0
        public async Task <IActionResult> GetMyActivities()
        {
            var user = await GetCurrentUserAsync();

            var myActivities = _prepOpsDataAccess.GetActivitySignups(user);
            var signedUp     = myActivities.Select(a => new ActivityViewModel(a.Activity));
            var viewModel    = new MyActivitiesResultsScreenViewModel("My Activities", signedUp);

            return(View("MyActivities", viewModel));
        }