예제 #1
0
 private void BadRequest(HttpActionContext actionContext)
 {
     Trace.TraceError("Trottle Attribute sending error response: 400. Bad request, since the access_token is not found in the request header");
     actionContext.Response = ClientErrors.InvalidJson(actionContext);
 }
예제 #2
0
 private void BadRequest(HttpActionContext actionContext)
 {
     Trace.TraceWarning("Basic Authorization Attribute sending error response: 400. Access token not present");
     actionContext.Response = ClientErrors.InvalidJson(actionContext);
 }