public void Handle(DeletarIngredienteOpcCommand message) { if (!CommandValido(message)) { return; } _ingredienteOpcRepository.Deletar(message.Id); if (!Commit()) { return; } }
public void Deletar(Guid id) { DeletarIngredienteOpcCommand command = new DeletarIngredienteOpcCommand(id); _bus.SendCommand(command); }