private void ExecuteLoginCommandAction() { int id = _userRepository.ValidateUser(Login, Password); if (id != 0) { Entities.User activeUser = _userRepository.GetUserById(id); UserService.UserService.AssignLoggedInUser(activeUser); MessageBox.Show("Login poprawny"); new MainWindow().Show(); } else { MessageBox.Show("Login bledny"); } }