public Register ( |
||
account | ||
return | System.Web.Mvc.ActionResult |
public ActionResult Register(Account account)
{
WebSecurity.CreateUserAndAccount(account.Email, account.Password);
WebSecurity.Login(account.Email, account.Password);
return RedirectToAction("Index", "Home");
}