public string AdminGetAllCustomers()
        {
            var BankAdminBLL   = new BankAdminBLL();
            var jsonSerializer = new JavaScriptSerializer();

            return(jsonSerializer.Serialize(BankAdminBLL.getAllCustomers()));
        }
 public ActionResult AdminOverview()
 {
     if (Session["AdminLoggedIn"] != null)
     {
         bool AdminLoggedIn = (bool)Session["AdminLoggedIn"];
         if (AdminLoggedIn)
         {
             var             BankAdminBLL = new BankAdminBLL();
             List <Customer> allCustomers = BankAdminBLL.getAllCustomers();
             return(View(allCustomers));
         }
     }
     Session["AdminLoggedIn"] = null;
     return(RedirectToAction("AdminLogin", "Bank"));
 }