WebApi
WebApi copied to clipboard
v4 HasActionLink returning null not working
When returning null from HasActionLink, the action still appears in the response.
Has anyone gotten conditional actions to work in v4?
Thanks,
Figured it out after many hours of researching.
Must set the FollowsConvention parameter to false and not use odata.metadata=full in the Accept header.
Must also make sure not to use the ActionLinkGenerationConvention