public IActionResult BusinessAccountDebit(ViewBusinessAccountViewModel vm)
        {
            var bank    = Utility.Utility.GetBankData(_env.WebRootPath);
            var account = bank.BusinessAccounts.Single(ba => ba.AccountID == vm.AccountID);
            var result  = account.Debit(vm.DebitAmount);

            Utility.Utility.SaveBankData(_env.WebRootPath, bank);
            return(RedirectToAction("ViewBusinessAccount", "Account", new { id = account.AccountID, message = result }));
        }
        public IActionResult BusinessAccountCredit(ViewBusinessAccountViewModel vm)
        {
            //pull acc from file, perform operation, then redirect to page with result!
            var bank    = Utility.Utility.GetBankData(_env.WebRootPath);
            var account = bank.BusinessAccounts.Single(ba => ba.AccountID == vm.AccountID);
            var result  = account.Credit(vm.CreditAmount);

            //now save to file
            Utility.Utility.SaveBankData(_env.WebRootPath, bank);
            return(RedirectToAction("ViewBusinessAccount", "Account", new { id = account.AccountID, message = result }));
        }