示例#1
0
        public void Handle(EmployeeLeft @event)
        {
            DomainEvents.Register <LeadsUnassignedDomainEvent>(LeadUnassignedDomainEventHandler);
            var leads = _leadRepository.GetUnsignedByAssignedToConsultantId(@event.Id);

            UnassignLeadsDomainService.Unassign(leads);
            _leadRepository.Flush();
        }