Exemplo n.º 1
0
        public ActionResult Login(User user)
        {
            var checkedUser = _serviceUser.CheckUser(user);

            if (checkedUser != null)
            {
                FormsAuthentication.SetAuthCookie(checkedUser.Login, false);
                return(RedirectToAction("Showcase", "Product"));
            }
            ModelState.AddModelError("", "Invalid User/Password");
            return(View());
        }