public void Handle(RegisterNewAdminUser command)
        {
            var user = _repository.Get(command.Role.StaffUserId);

            user.RegisterNewAdminUser(command.IsNewRegistration, command.Role.FullName, command.Role.DisplayName,
                                      command.Role.Email, command.RegisteredAt);
        }
        public void Handle(RegisterNewAdminUser command)
        {
            var user = _repository.Get(command.Role.StaffUserId);

            user.RegisterNewAdminUser(command.Role.FullName, command.Role.DisplayName,
                                      command.Role.Email, DateTimeOffset.UtcNow);
        }
Beispiel #3
0
        public void Handle(RegisterNewAdminUser command)
        {
            var user = _repository.Get(command.Role.StaffUserId);

            user.RegisterNewAdminUser(command.Role.FullName, command.Role.DisplayName,
                                      command.Role.Email, _systemClock.GetCurrentTime());
        }