Example #1
0
                public async Task Delete(int id)  
                
        {
             
            var entity = await GetById(id);

                        if (entity  ==  null)  
                         {
                 
                                throw new ArgumentNullException(nameof(entity));  
                                
            }  

                        await _repository.Delete(entity);  

                        
        }
Example #2
0
 public void Execute(AccountClosedEvent theEvent)
 {
     _reportingRepository.Delete <AccountReport>(new { Id = theEvent.AggregateId });
     _reportingRepository.Delete <AccountDetailsReport>(new { Id = theEvent.AggregateId });
 }
Example #3
0
 /// <summary>
 /// Delete Reporting Data
 /// </summary>
 /// <param name="evt"></param>
 public void Handle(PersonDeletedEvent evt)
 {
     _reportingRepository.Delete <Person>(evt.Id);
 }