public async Task <IActionResult> Index(int id)
        {
            var housHolds = await _client.GetHousholdsAsync(id);

            var contracts = await _client.GetContractsAsync(id);

            var partner = await _client.GetPartnerAsync(id);

            var proposals = await _client.GetProposalsAsync(id);

            var offers = await _client.GetOffersAsync(id);

            var contacts = await _client.GetContactsAsync(id);

            var viewModel = new PartnerOverviewViewModel();

            viewModel.Title     = $"{partner.Firstname} {partner.Name} - Deckblatt";
            viewModel.Branches  = _client.GetBranches(contracts);
            viewModel.Housholds = housHolds;
            viewModel.Contracts = contracts;
            viewModel.Partner   = partner;
            viewModel.Contacts  = contacts;
            viewModel.Proposals = proposals;
            viewModel.Offers    = offers;

            ViewBag.Partner   = partner;
            ViewBag.PartnerId = id;
            return(View(viewModel));
        }
        public async Task <IViewComponentResult> InvokeAsync(int partnerId)
        {
            var partner = await _client.GetPartnerAsync(partnerId);

            var contracts = await _client.GetContractsAsync(partnerId);

            var branches = _client.GetBranches(contracts);

            var viewModel = new BranchListViewModel
            {
                Partner  = partner,
                Branches = branches
            };

            return(View(viewModel));
        }