Except that the detective in a murder mystery is an active protagonist, not a passive one. Imagine a murder mystery where the central protagonist character makes no steps to solve a murder, and doesn't know there's been a murder at all until the last chapter. It might work, but it's certainly not the normal narrative.
no subject