Here is the position of the game that I recently resigned as white. I just played Nc4 to Ne5 thinking to attack the queen and open the diagonal for the king check. What I didn't see was black's knight getting ready to get an awesome check then taking my queen. When I looked back at the board and saw what was about to happen I decided to resign for being so stupid. After resigning I decided maybe I should not have resigned and that my position after Ke1 would be pretty good after all. We would probably just swap queens and knights.
My question is if I am correct that attacking the queen isn't a bad thing to do even if I give up my king and queen getting forked. Would my position have been fine or was I right to resign?