public void Handle(RegisterNewStaffDataConsumer command) { var user = _repository.Get(command.Role.StaffUserId); user.RegisterNewDataConsumer(command.Role.FullName, command.Role.DisplayName, command.Role.Email, command.Role.NationalSociety, command.Role.PreferredLanguage.Value, command.Role.BirthYear, command.Role.Sex, command.Role.Location, DateTimeOffset.UtcNow); }
public void Handle(RegisterNewStaffDataConsumer command) { var user = _repository.Get(command.Role.StaffUserId); user.RegisterNewDataConsumer(command.Role.FullName, command.Role.DisplayName, command.Role.Email, _systemClock.GetCurrentTime(), command.Role.NationalSociety, command.Role.PreferredLanguage.Value, command.Role.BirthYear, command.Role.Sex, command.Role.Location); }