public async Task<IActionResult> Create(BankAccount bankAccount)
 {
     if (ModelState.IsValid)
     {
         _context.BankAccounts.Add(bankAccount);
         await _context.SaveChangesAsync();
         return RedirectToAction("Index");
     }
     ViewData["BankId"] = new SelectList(_context.Banks, "Id", "Name", bankAccount.BankId);
     return View(bankAccount);
 }
 public BankAccountDetailsViewModel(BankAccount account, BankAccountDetailsTab activeTab, AccountStatement[] statements = null)
 {
     Account = account;
     ActiveTab = activeTab;
     Statements = statements;
 }