The husband does not want to have sex with the main character.
She participates in first in ordinary photo shoots, then in erotic ones. After - cheating on her husband.
It seems to be a "detective" and she was found dead, but maybe I'm confusing it with another movie.
A Snake of June?