private void AddActionParameters(HypermediaActionBase hypermediaAction, JObject jAction, string acceptedMediaType) { if (!hypermediaAction.HasParameter()) { return; } jAction.Add("type", acceptedMediaType ?? DefaultMediaTypes.ApplicationJson); AddActionFields(jAction, hypermediaAction); }
private void AddActionParameters(HypermediaActionBase hypermediaAction, JObject jAction) { if (!hypermediaAction.HasParameter()) { return; } jAction.Add("type", DefaultContentTypes.ApplicationJson); AddActionFields(jAction, hypermediaAction.ParameterType()); }