public async Task <IActionResult> Get([FromQuery] GarcomQueryModel query)
        {
            if (!ModelState.IsValid)
            {
                return(Response(query));
            }

            var garcoms = await _garcomService.ObterListaPaginados(query);

            if (!garcoms.Any() && IsValidOperation())
            {
                return(NoContent());
            }

            return(Response(garcoms));
        }
        public async Task <IEnumerable <GarcomDto> > ObterListaPaginados(GarcomQueryModel queryModel)
        {
            var command = _mapper.Map <ObterGarconsQuery>(queryModel);

            return(await _mediator.Send(command));
        }