Example #1
0
 public void Handle(DeleteCervejaCommand command)
 {
     _cervejaCommandService.Delete(command.Cerveja.Id);
 }
        public void DeleteCerveja(CervejaDTO CervejaDTO)
        {
            var command = new DeleteCervejaCommand(_mapper.Map <Domain.CervejaAggregate.Cerveja>(CervejaDTO));

            _queue.Enqueue(command);
        }