Example #1
0
        public IActionResult Index(int?page)
        {
            var banks = _bank.GetBankDetails();

            ViewBag.Banks         = banks;
            ViewBag.AccountTreeId = new SelectList(_Acctree.GetAccountTrees(), "Id", "DescriptionAr");
            //if (nationality.Count() <= 10) { page = 1; }
            //int pageSize = 10;
            return(View());
        }
        public IActionResult Add()
        {
            ForeignAgencyTransferViewModel agencyTransfer = new ForeignAgencyTransferViewModel();

            agencyTransfer.TransferDate = DateTime.Now.ToString("d", CultureInfo.InvariantCulture);
            ViewBag.PurposeId           = new SelectList(_purpose.GetTransferPurposes(), "Id", "Name");
            ViewBag.CurrencyId          = new SelectList(_currency.GetCurrencies(), "Id", "Name");
            ViewBag.TransferBankId      = new SelectList(_bank.GetBankDetails(), "Id", "Name");
            ViewBag.PaymentMethodId     = new SelectList(_payment.GetPaymentMethods(), "Id", "Name");
            ViewBag.ForeignAgencyId     = new SelectList(_agency.GetAgencies(), "Id", "OfficeName");
            return(View(agencyTransfer));
        }