Public String becoming null after being set [closed]

The object instance is different between the two calls. Unless you make the property static to hold a reference to the same object, it will be newly created each time you hit the endpoint.

Leave a Comment