Пример #1
0
        public void Handle(AddSelfRegistrationCommand command)
        {
            var repository        = this._contextFactorySelfRegistration();
            SelfRegistration self = new SelfRegistration();

            self.Email               = command.Email;
            self.Name                = command.Name;
            self.EnrollmentIP        = command.EnrollmentIP;
            self.InviteCode          = command.InviteCode;
            self.PersonIntegrationId = command.PersonIntegrationId;
            self.CreationDateUTC     = DateTime.UtcNow;

            repository.Save(self);
            //todo: criar um meio pra enviar email pra pessoas que não fazem parte do heeelp
            //todo: enviar email para pessoa que ainda não faz parte do heeelp
        }
Пример #2
0
 public SelfRegistrationController(ICacheOperation cacheOperation)
 {
     voterRegistration = new SelfRegistration(cacheOperation);
 }