public IActionResult LoggedInHome() { int id = HttpContext.Session.Get <int>(Session_Key); BankCustomer customer = customerDAL.GetCustomerDetails(id); customer.Accounts = accountDAL.GetUsersAccounts(id); return(View(customer)); }