Пример #1
0
 public ActionResult Create(UserProfile userprofile)
 {
     if (ModelState.IsValid)
     {
         objUserProfileBO.InsertUser(userprofile);
         return(RedirectToAction("Index"));
     }
     return(View(userprofile));
 }
Пример #2
0
 public ActionResult RegisterOld(UserProfile objUser)
 {
     if (ModelState.IsValid)
     {
         objUser.FKRoleId = 2;
         objUserProfileBO.InsertUser(objUser);
         return(RedirectToAction("Login"));
     }
     return(View(User));
 }
Пример #3
0
        public ActionResult Create([Bind(Include = "PKUserId,EmailAddress,FirstName,LastName,Password,IsActive")] UserProfile userProfile)
        {
            if (ModelState.IsValid)
            {
                profileBO.InsertUser(userProfile);
                return(RedirectToAction("Index"));
            }

            return(View(userProfile));
        }
Пример #4
0
 public ActionResult Register(UserProfile objUser)
 {
     if (ModelState.IsValid)
     {
         //user account by default is inactive
         //admin activates the account
         objUser.IsActive = false;
         userProfileBO.InsertUser(objUser);
         return(RedirectToAction("Login"));
     }
     return(View(User));
 }