public void AtualizarStatus(string id, PedidoStatus status) { var command = new AtualizarStatusCommand(id, status); _handler.Handle(command); }
public void Handle(AtualizarStatusCommand command) { _repository.Update("_id", ObjectId.Parse(command.ID), "Status", (int)command.Status).GetAwaiter().GetResult(); }