public async Task <IActionResult> Pay(int?id)
        {
            BillPayViewModel vm;

            vm = new BillPayViewModel();
            if (id != null)
            {
                vm.Bill = await _context.GetBill(CustomerId, id);
            }
            else
            {
                vm.Bill = new BillPay();
            }
            vm.Payees   = _context.GetAllPayees();
            vm.Customer = await _context.GetCustomerWithAccounts(CustomerId);

            return(View(vm));
        }
Exemple #2
0
        //List accounts that each customer has
        //also provide links to deposit/withdraw/transfer functions
        public async Task <IActionResult> Accounts()
        {
            var cust = await _context.GetCustomerWithAccounts(CustomerId);

            return(View(cust));
        }