public override bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext)
 {
     BindModelOnSuccessOrFail(bindingContext,
                              () => ModelBinderUtils.CreateArgumentMap(DeserializeJsonContent(actionContext)),
                              ModelBinderUtils.CreateArgumentMapForMalformedArgs);
     return(true);
 }
Beispiel #2
0
 public override bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext)
 {
     BindModelOnSuccessOrFail(bindingContext,
                              () => ModelBinderUtils.CreateSimpleArgumentMap(actionContext.Request.RequestUri.Query) ??
                              ModelBinderUtils.CreateArgumentMap(DeserializeQueryString(actionContext)),
                              ModelBinderUtils.CreateArgumentMapForMalformedArgs);
     return(true);
 }