public async Task <IActionResult> Edit(int id, [Bind("BankAccountSecurityInfoId,CustomerId,UserId,Password,TaxPassword,ExtraPassword,ATMCardNumber,ExpiryDate,CVVNo,ATMPin,TPIN")] BankAccountSecurityInfo bankAccountSecurityInfo)
        {
            if (id != bankAccountSecurityInfo.BankAccountSecurityInfoId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(bankAccountSecurityInfo);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!BankAccountSecurityInfoExists(bankAccountSecurityInfo.BankAccountSecurityInfoId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["BankAccountSecurityInfoId"] = new SelectList(_context.BankAccountInfos, "BankAccountInfoId", "AccountNumber", bankAccountSecurityInfo.BankAccountSecurityInfoId);
            return(View(bankAccountSecurityInfo));
        }
        public async Task <IActionResult> Create([Bind("BankAccountSecurityInfoId,CustomerId,UserId,Password,TaxPassword,ExtraPassword,ATMCardNumber,ExpiryDate,CVVNo,ATMPin,TPIN")] BankAccountSecurityInfo bankAccountSecurityInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(bankAccountSecurityInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["BankAccountSecurityInfoId"] = new SelectList(_context.BankAccountInfos, "BankAccountInfoId", "AccountNumber", bankAccountSecurityInfo.BankAccountSecurityInfoId);
            return(View(bankAccountSecurityInfo));
        }