Frage

Wondering if it's considered best practice to use Strongly typed views in only your Edit forms, or should they be used in create forms as well.

I know it most likely depends, but just haven't found a good resource yet outlining best practices with regards to using ViewModels.

War es hilfreich?

Lösung

Best Practise in my opinion is to have one type/view for both edit and create, because in most cases what you have entered in the first place need to have ability to edit it later, so the best to have one view/type that do edit/create with may be small UI changes in case of create or edit such as disabiling some fields that only editable at create stage , etc

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top