private Register ( |
||
model | ||
Результат | System.Web.Mvc.ActionResult |
public ActionResult Register(RegisterModel model)
{
if (ModelState.IsValid)
{
Owner owner = new Owner { UserName = model.UserName, Password = model.Password};
RavenSession.Store(owner);
FormsAuthentication.SetAuthCookie(model.UserName, false /* createPersistentCookie */);
return RedirectToAction("Index", "Home");
}
// If we got this far, something failed, redisplay form
return View(model);
}
AccountController::Register ( ) : System.Web.Mvc.ActionResult |