I have a Get (int Id) method in my controller that returns class instance.
Instance is created correctly(i can see that in the debugger) but on attempt to return
return classInstance;
my code crashes since it runs in the new thread and therefore setting culture to "en-US" .
Previously I have set default culture to "en-CA" which works beautifully on JsonConvert.SerializeObject(user,Formatting.Indented,settings).
How to fix the issue without modifying legacy code on classInstance. Is there a way to set culture for all threads within current request.
Or if you have some other idea.