public ActionResult Index(Login login)
        {
            var result = loginDAL.Login(login.Username, login.Password);

            if (result == "1")
            {
                TempData["error"] = "Invalid Username/Password";
                return(RedirectToAction("Index", "Login"));
            }
            else
            {
                return(RedirectToAction("Index", "Home"));
            }
        }
Beispiel #2
0
 public DataTable Login(LoginModel m)
 {
     return(ild.Login(m));
 }