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 }
public SelfRegistrationController(ICacheOperation cacheOperation) { voterRegistration = new SelfRegistration(cacheOperation); }