public ActionResult Register(RegistrationFormViewModel vm)
        {
            if (!ModelState.IsValid)
            {
                return CurrentUmbracoPage();
            }

            var member = Members.CreateRegistrationModel();
            member.Name = vm.Name;
            member.Email = vm.Email;
            member.Password = vm.Password;
            member.UsernameIsEmail = true;
            MembershipCreateStatus status;
            Members.RegisterMember(member, out status);
            if (!status.Equals(MembershipCreateStatus.Success))
            {
                return CurrentUmbracoPage();
            }

            var email = new EmailDetail
            {
                To = new List<string> { member.Email },
                Subject = "Registraion confirmation",
                IsBodyHtml = false
            };
            _mailer.Send(email);

            return RedirectToCurrentUmbracoPage();
        }
 public RegistrationViewModel()
 {
     Form = new RegistrationFormViewModel();
 }