// GET: Presentations public async Task <IActionResult> Index() { var currentSpeaker = await _speakerRepository.GetSpeakerBySpeakerEmailIncludingRelationshipsAsync(HttpContext.User.Identity.Name); //var presentations = await _presentationRepository.GetAllPresentationsAsync(); var presentationViewModels = _presentationViewModelMapper.MapFromPresentations(currentSpeaker.OwnedPresentations); if (presentationViewModels == null) { return(View("NoPresentation")); } return(View(presentationViewModels)); }