public ActionResult Index() { connection(); try { LoginRepo Lr = new LoginRepo(); LoginLogout ll = Lr.dropdownrepo(); return(View(ll)); } catch (SqlException) { ViewData["message"] = "Login Attempt Failed! Check Email And Password"; } return(View()); }