public async Task <ComandaDto> Handle(ObterComandaQuery request, CancellationToken cancellationToken)
        {
            if (request.Id == null || request.Id == Guid.Empty)
            {
                request.AddNotification("ObterComandaQuery.Id", "Id é obrigatório.");
            }

            if (request.Invalid)
            {
                await _mediator.Publish(new DomainNotification
                {
                    Erros = request.Notifications
                }, cancellationToken);

                ComandaDto comandaNull = null;

                return(await Task.FromResult(comandaNull));
            }

            return(_comandaRepository.GetById(request.Id));
        }