❔ Filter .NET error from beginner
Hii!
I'm uising filter from .NET
So, I have in the controller
Both are a filter that I make
pokemonsExistsAttribute.cs:
6 Replies
ModelValidAttribute.cs:
And I added to program.cs:
So, when I Get Request that's happen:
And another related question. What is the best practice and way to make filters? Because for example, in Node, we made Helper Functions, where we called them to do these kinds of things, like validating roles, checking if a session exists, a model is correct, etc. In .NET is this the best and cleanest option?
Thank you
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.