public async Task <IActionResult> ViewCandidate(string username) { var candidateProfile = await candidateProfileManager.GetProfile(username); var interested = await companyProfileApplicationService.GetInterest(username); return(View("ViewCandidateProfile", new ViewCandidateProfileReadModel { CandidateProfile = candidateProfile, Interested = interested })); }