Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

ActionExecutingContext result response return

public override void OnActionExecuting(ActionExecutingContext context)
{
  context.Result = new UnauthorizedObjectResult("user is unauthorized");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ActionExecutingContext #result #response #return
ADD COMMENT
Topic
Name
5+3 =