Esempio n. 1
0
        public ActionResult Login(LoginViewModel model)
        {
            if (ModelState.IsValid)
            {
                if (loginService.AreValidUserCredentials(model.UserName, model.Password))
                {
                    return(RedirectToAction("Index", "Home"));
                }
            }

            return(View(model));
        }