public void AtualizarPreco(string id, decimal Valor) { var command = new AtualizarValorCommand(id, Valor); _handler.Handle(command); }
public void Handle(AtualizarValorCommand command) { _repository.Update("ID", command.ID, "Valor", command.Valor).GetAwaiter().GetResult(); }