Exemplo n.º 1
0
        public ActionResult AddUserToDB(LoginModel model)
        {
            SetCookies(model);
            User userDetails = DALayer.AddNewUser(model);

            DALayer.UpsertTokenValue(model.Token, model.Email);
            SetProperty(SessionVariableNames.Current_User, userDetails);
            return(RedirectToAction("Index", "Home"));
        }