Best way to abort/cancel action from ActionFilter
I\'ve got this ActionFilter, and it\'s suppose to end the connection immediately and return a 401 Unau
ActionFilter
using .net core 2.1 the solutions above did not work for me , so i tried this and it worked :-
context.HttpContext.Response.StatusCode = 401; return;
if there is better solutions for .net core 2.1 i am open for suggestions