2

[EnableQuery] and SingleResult does in fact return 404 OOTB, that is one of the key reasons for SingleResult to exist in the first place. The problem is that your code is trying to return a raw HttpResponseMessage directly which will bypass the logic that makes this happen. The basic implementation is simply this: [EnableQuery] public virtual SingleResult ...


Only top voted, non community-wiki answers of a minimum length are eligible