public async Task <IActionResult> View([FromRoute] Guid applicationId) { ViewData["ApplicationId"] = applicationId; var model = new InvitationsViewModel { Invitations = await invitationService.GetPending(applicationId), UsersApplications = await invitationService.GetApproved(applicationId) }; return(View(model)); }