best practice question
This may seem like a dumb question, but here goes:
I am going through the MVC 5 tutorial. So far all the properties in the Models are public.
What is the best practice? Should properties always be public since you want outside objects to be able to get/set them? Or is there any time you'd want them to be restricted or private?
|