public IViewComponentResult Invoke(int id, bool isRenter)
        {
            //var x = this.RouteData?.Values["id"] ?? string.Empty;

            //if (!int.TryParse(x.ToString(), out int renterId))
            //{
            //    renterId = 0;
            //}

            //int id = renterId;

            //    bool isRenter = true;

            var transactionViewDto = new TransactionViewDto
            {
                ShowAssociatedLeasers = isRenter,
            };

            if (isRenter)
            {
                transactionViewDto.TransactionDtos = service.GetAllRenterTransactions(id);
            }
            else
            {
                transactionViewDto.TransactionDtos = service.GetAllLeaserTransactions(id);
            }

            return(View(transactionViewDto));
        }