ActionExecutingContext result response return

81

ActionExecutingContext result response return -

public override void OnActionExecuting(ActionExecutingContext context)
{
  context.Result = new UnauthorizedObjectResult("user is unauthorized");
}

Comments

Submit
0 Comments