The initial state is that I map to my domain model in a presentation model.
I have to show
Is there a list for the dropdown list in the view-module or should I use the data in the Dopdown list using the ViewData?
When should I use ViewData and when should I not use it?
Are the input fields in the dropdown list different visual models?
I try and use ViewData as much as possible, because you Always need to put values, you need to check the tap or check the error for the keys which is not in my existence.
I try and try to use visual modals whenever possible, whenever I am writing the model as a clearer approach.
The more data I will put in the view-model as much as possible, but only for those who understand the data that should not be in the view-model, I can pass it as ViewData , But will try to keep the amount at a minimum.
As far as you ask questions, for the input field, if they are all related, instead of going through 5 or 10 pieces of data in ViewData, I will create a view model for it because logically Bundling in one place would mean that it is actually a matter of priority, but I have to consider this approach as the best for me.
Comments
Post a Comment