Esempio n. 1
0
        public virtual ActionResult Index(CreateDemoAccountViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            var result = _createDemoActProc.Execute(new CreateDemoAccountParams
            {
                RequestingUserID = CurrentUserId,
                Name             = model.Name,
                Email            = model.Email,
                OrganizationName = model.OrganizationName,
                Password         = model.Password
            });

            return(RedirectToAction(MVC.Admin.CreateDemoAccount.Success(model.Name, model.Email, model.Password)));
        }
Esempio n. 2
0
 public ContactUsCreateAccountViewModel()
 {
     CreateAccountModel = new CreateDemoAccountViewModel();
 }