// GET: BankAccounts/_AccountList
        public PartialViewResult _AccountList(BankAccount bankAccount)
        {
            var HHidS = User.Identity.GetHouseholdId();
            int HHid;
            if (!string.IsNullOrWhiteSpace(HHidS))
            {
                HHid = Convert.ToInt32(HHidS);
            }
            else
                HHid = 0;
            var accounts = db.Accounts.Where(b => b.HouseholdId == HHid && b.IsDeleted != true);

            ViewBag.OverdraftWarning = "Overdraft Warning";
            ViewBag.Overdraft = "Overdraft Notice";

            return PartialView(accounts.ToList());
        }
        // GET: BankAccounts/Transfer
        public PartialViewResult _Transfer(BankAccount bankAccount)
        {
            var user = Convert.ToInt32(User.Identity.GetHouseholdId());
            var fromList = db.Accounts.Where(f => f.HouseholdId == user && f.IsDeleted != true);
            var toList = db.Accounts.Where(t => t.HouseholdId == user && t.IsDeleted != true);

            ViewBag.fromId = new SelectList(fromList.ToList(), "Id", "Name",bankAccount.Id);
            ViewBag.toId = new SelectList(toList.ToList(), "Id", "Name", bankAccount.Id);

            return PartialView();
        }
        public ActionResult Index(BankAccount bankAccount)
        {
            var user = Convert.ToInt32(User.Identity.GetHouseholdId());
            var accounts = db.Accounts.Where(b => b.HouseholdId == user && b.IsDeleted != true);

                if (user == 52)
                {
                    ViewBag.DemoMessage = "Glad to see your still using this Demo! On this page you can " +
                        "create, edit, and delete accounts. Each account has a link to access the transactions " +
                        "associated with it as well. You also can transfer amounts from and to specified accounts.";
                }
                ViewBag.OverdraftWarning = "Overdraft Warning";
                ViewBag.Overdraft = "Overdraft Notice";
                ViewBag.ErrorMessage = TempData["errorMessage"];
                ViewBag.SuccessMessage = TempData["successMessage"];
                return View(accounts.ToList());
        }