Exemplo n.º 1
0
        public ActionResult SignIn(string login, string password)
        {
            if (_shopModel.SignIn(login, password))
            {
                FormsAuthentication.SetAuthCookie(login, true);
                return(RedirectToAction(nameof(GetShopsOfUser)));//UserProfile
            }

            return(RedirectToAction(nameof(LogIn)));
        }