Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

ActionExecutingContext result response return

public override void OnActionExecuting(HttpActionContext actionContext)    
{ 
    actionContext.Response = new HttpResponseMessage(HttpStatusCode.Unauthorized);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ActionExecutingContext #result #response #return
ADD COMMENT
Topic
Name
2+7 =