AccountManagement.Controllers.HomeController.Register C# (CSharp) Method

Register() public method

public Register ( Account account ) : System.Web.Mvc.ActionResult
account AccountManagement.Domain.Model.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");
        }