public ActionResult Index(UserValidationModel newUser) { if (!ModelState.IsValid) return View(); provider = new UserMemberProvider(); if (provider.CreateUser(Request.Form["UserName"], Request.Form["Password"], "") != null) return View("Success"); else return View(); }
public ActionResult Register(UserValidationModel newUser) { if (!ModelState.IsValid) return View(); provider = new UserMemberProvider(); if (provider.CreateUser(Request.Form["UserName"], Request.Form["Password"], Request.Form["Email"]) != null) return View("Index", "Forum"); else return View(); }