Esempio n. 1
0
        public ActionResult Index(User user)
        {
            var auth = new Authorization();
            auth.AddUser(user);

            // Create session
            FormsAuthentication.SetAuthCookie(user.Email, true);

            return RedirectToAction("Login", "Account");
        }
Esempio n. 2
0
 public ActionResult Index(User user)
 {
     var auth = new Authorization();
     auth.AddUser(user);
     return RedirectToAction("Login", "Account");
 }