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