示例#1
0
        public ActionResult Register(UserRegistration UR)
        {
            if (UR.UserID != 0)
            {
                rgm.EditUser(UR);
            }
            else
            {
                rgm.AddUser(UR);

                //return RedirectToAction("Login", "Login");
            }

            return(RedirectToAction("Login", "Login"));
        }