I have this controller that handles AJAX notifications from client side.
In a sample action method of it, I process the request and output a simple JSON encoded message according to the request details.
Now, when the output has finished, I'd like the code execution to stop. I have two relevant options:
Now, is there any difference between the two?
What would you recommend, if there's any meaningful bias toward one option?
(There are several similar threads out there but none is precise as this in either the question or the replies so I'm phrasing it here).