Пример #1
0
        private void RegisterAccount(CreateAdminAccount command)
        {
            ApplicationSetup.UpdateDatabaseToLatestSchema();

            var createUserResult = Users.Handle(command);

            if (!createUserResult.Succeeded)
            {
                throw new Exception(string.Join("\n", createUserResult.Errors));
            }
        }
Пример #2
0
 public ActionResult UpdateSchema(bool?overload)
 {
     ApplicationSetup.UpdateDatabaseToLatestSchema();
     return(RedirectToAction("Step1"));
 }