public async Task <IActionResult> DisplayEvents() { var currentUser = await _userManager.GetUserAsync(User); var eventsCreated = await _eventService.GetEventCreated(currentUser.Id); var eventsJoined = await _eventService.GetEventJoined(currentUser.Id); var model = new EventToDisplayViewModel() { EventsCreated = eventsCreated, EventsJoined = eventsJoined.ToArray() }; return(View(model)); }