//The method for the add user command private void AddUserMethod() { _userService.AddUser(User); //Clears the user so it is ready for the next one User = null; //Closes the window _dialogService.CloseAddUserDialog(); }