예제 #1
0
        public void Deactivate(ActiveAccountCommand command)
        {
            //TODO: Recuperar o Tenent
            var tenant = new Tenant();

            tenant.Deactivete();

            _tenantRepository.Update(tenant);
            //TODO: Enviar email informando a desativação da conta
        }
예제 #2
0
        public List <IEvent> Activate(ActiveAccountCommand command)
        {
            //TODO: Recuperar o Tenent
            var tenant = new Tenant();

            tenant.Activete();

            _tenantRepository.Update(tenant);

            return(new List <IEvent>
            {
                new TenantActivated(tenant)
            });
            //TODO: Enviar email de ativação da conta
        }
 public void Activate(ActiveAccountCommand command)
 {
     Console.WriteLine("Usuario Ativado");
 }