I have a simple address object in my domain that has a ToString()
method that returns the address like this:
123 Test Ave
Appt 1A
Spokane, WA 99201
We will be diplaying this in a webpage on several different occasions so it makes senses to add the functionality somewhere to display the address with Html formatting, but if I where to add a ToStringHtmlFormat()
to my domain class it begins to start to smell funny.
I am probably being a bit picky, but where/how do you suggest accomplishing this to keep my domain class free of any Html stuff?
thanks for you suggestions...