❔ Filter .NET error from beginner

Hii!
I'm uising filter from .NET
So, I have in the controller

[HttpGet("{pokeId}/rating")]
        [ProducesResponseType(200, Type = typeof(decimal))]
        [ProducesResponseType(400)]
        [PokemonExists]
        [ModelStateValid]
        public IActionResult GetPokemonRating(int pokeId)
        {
            var rating = _pokemonRepository.GetPokemonRating(pokeId);

            return Ok(rating);
        }


[PokemonExists]
[ModelStateValid]


Both are a filter that I make
pokemonsExistsAttribute.cs:
code.png
Was this page helpful?