public IActionResult Login([Bind] Login login) { if (ModelState.IsValid) { if (obj.LoginUser(login)) { return(RedirectToAction("Home")); } else { login.Message = "Invalid UserName and Password"; } } return(View(login)); }