public IActionResult PartyOverview() { PartyOverviewViewModel vm; List <Party> parties = repository.GetPartiesUser(getCurrentUserUsername()); int selectedPartyIndex = userManager.GetUserAsync(User).Result.SelectedPartyIndex; repository.Complete(); vm = new PartyOverviewViewModel(selectedPartyIndex, parties); return(View(vm)); }