public ActionResult Create(UserProfile userprofile) { if (ModelState.IsValid) { objUserProfileBO.InsertUser(userprofile); return(RedirectToAction("Index")); } return(View(userprofile)); }
public ActionResult RegisterOld(UserProfile objUser) { if (ModelState.IsValid) { objUser.FKRoleId = 2; objUserProfileBO.InsertUser(objUser); return(RedirectToAction("Login")); } return(View(User)); }
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)); }
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)); }