예제 #1
0
        public IActionResult GetByFilter([FromBody] FilterPaginacaoViewModel filter)
        {
            if (!Request.Headers.TryGetValue(ControllersConstants.UsuarioId, out StringValues uId) ||
                !Guid.TryParse(uId, out Guid usuarioId))
            {
                throw new ApiException(ApiErrorCodes.INVUSU);
            }

            ModelCountViewModel <JogoViewModel> _result = _service.GetByFilter(filter, usuarioId);

            return(Ok(_result));
        }