コード例 #1
0
        public void Handle(RegisterNewDataOwner command)
        {
            var user = _repository.Get(command.Role.StaffUserId);

            user.RegisterNewDataOwner(command.Role.FullName, command.Role.DisplayName,
                                      command.Role.Email, command.Role.NationalSociety,
                                      command.Role.PreferredLanguage.Value, command.Role.PhoneNumbers, command.Role.BirthYear,
                                      command.Role.Sex, command.Role.Position, command.Role.DutyStation, DateTimeOffset.UtcNow);
        }
コード例 #2
0
        public void Handle(RegisterNewDataOwner command)
        {
            var user = _repository.Get(command.Role.StaffUserId);

            user.RegisterNewDataOwner(command.Role.FullName, command.Role.DisplayName,
                                      command.Role.Email, _systemClock.GetCurrentTime(), command.Role.NationalSociety,
                                      command.Role.PreferredLanguage.Value, command.Role.PhoneNumbers, command.Role.BirthYear,
                                      command.Role.Sex, command.Role.Location, command.Role.Position, command.Role.DutyStation);
        }