示例#1
0
        public ActionResult Register(string Name)
        {
            User objUser;

            objUser = _Provider.GetUserByName(Name);
            if (objUser == null)
            {
                objUser = _Provider.AddUser(Name);
            }

            Session["user"] = objUser;
            return(RedirectToRoute(new { controller = "User", action = "ShowContacts" }));
        }