/// <summary> /// The sign up. /// </summary> private void SignUp() { try { this.registerInfo = new RegisterInfo(); this.registerInfo.Login = this.LoginNameReg; this.registerInfo.Password = this.PasswordReg; UserManager userManager = new UserManager(); userManager.CreateUser(this.registerInfo); ControlManager.GetInstance().Place("MainWindow", "mainRegion", "DashboardControl"); } catch (Exception exception) { var message = exception.Message; this.View.ShowError(message); } }