public IActionResult GetMyActivities()
 {
     var myActivities = _allReadyDataAccess.GetActivitySignups(User.GetUserId());
     var signedUp = myActivities.Select(a => new ActivityViewModel(a.Activity));
     var viewModel = new MyActivitiesResultsScreenViewModel("My Activities", signedUp);
     return View("MyActivities", viewModel);
 }
Esempio n. 2
0
 public async Task<IActionResult> GetMyActivities()
 {
     var user = await GetCurrentUserAsync();
     var myActivities = _allReadyDataAccess.GetActivitySignups(user);
     var signedUp = myActivities.Select(a => new ActivityViewModel(a.Activity));
     var viewModel = new MyActivitiesResultsScreenViewModel("My Activities", signedUp);
     return View("MyActivities", viewModel);
 }