Read body in FromBody and ActionFilter
hey guys, good evening, I'm new to C#
I'm trying to read the body of a request and if my endpoint has [FromBody] I can't read it through the HttpContext in the ActionFilter, if I remove it, works.
To tell you the truth I don't even know if I should use ActionFilter or a middleware, I don't really understand the difference...
endpoint
filter
thanks in advance
I'm trying to read the body of a request and if my endpoint has [FromBody] I can't read it through the HttpContext in the ActionFilter, if I remove it, works.
To tell you the truth I don't even know if I should use ActionFilter or a middleware, I don't really understand the difference...
endpoint
filter
thanks in advance