public async Task <IActionResult> Index() { // Will probably have to get the resume id here var userId = User.FindFirstValue(ClaimTypes.NameIdentifier); var resumes = await _resumeService.FindAllIncludingAllAsync(userId); var resume = _mapper.Map <ICollection <Data.Entities.Resume>, IEnumerable <ResumeViewModel> >(resumes); return(View(resume)); }
/// <summary> /// Gets all of this users resumes based on their user id and returns the view /// </summary> /// <returns></returns> public async Task <IActionResult> Index() { var resumes = await _resumeService.FindAllIncludingAllAsync(User.FindFirstValue(ClaimTypes.NameIdentifier)); return(View(resumes)); }