Contant UI messages in .NET
Posted on 2016-09-08
I have some standard UI messages like Error or Info. All are sent from the .Net Web Api service to UI angularjs.
There may be around 5-10 messages for now. This may increase in future.
1> Should I maintain them in the respective Business Class as constants.
2> keep them in Web.Config of the Web api
3> Or Global.asax of the Web api
What is the best practice. If you have any examples i.e helpful also. considering or performance, code maintenance and resusability. There is no database here.
Thanks in Advance