public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var providerBankAccount = _providerBankAccountRepository.ProviderBankAccountRelashionships(id.Value).FirstOrDefault();

            return(View(Mapper.Map <ProviderBankAccountRelashionshipsViewModel>(providerBankAccount)));
        }
        public ActionResult InstallmentPayment(int?id, int installment_Id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var accountToPay = _accountToPayRepository.Find((int)id);

            ViewBag.Installment_Id = installment_Id;

            ViewBag.InternalBankAccounts = new SelectList(Mapper.Map <IEnumerable <InternalBankAccountRelashionshipsViewModel> >(_internalBankAccountRepository.InternalBankAccountRelashionships),
                                                          nameof(InternalBankAccountRelashionshipsViewModel.Id),
                                                          nameof(InternalBankAccountRelashionshipsViewModel.DescriptionAccount));

            ViewBag.ProviderBankAccounts = new SelectList(Mapper.Map <IEnumerable <ProviderBankAccountRelashionshipsViewModel> >(_providerBankAccountRepository.ProviderBankAccountRelashionships(accountToPay.ProviderId)),
                                                          nameof(ProviderBankAccountRelashionshipsViewModel.Id),
                                                          nameof(ProviderBankAccountRelashionshipsViewModel.DescriptionAccount));

            return(View(Mapper.Map <AccountToPayViewModel>(_accountToPayRepository.Find(id.Value))));
        }