// GET: Banks public ActionResult Index() { ViewBag.ErrorMessage = "No Banks to Show!"; if (db.GetAllBanks() != null) { return(View(db.GetAllBanks().ToList())); } else { return(View(ViewBag.ErrorMessage)); } }
// GET: AccountBank public ActionResult Index() { return(View(br.GetAllBanks().ToList())); }