DinnerFormViewModel
Hello I'm working my way through NerdDinner and I really don't understand this part when creating the views for DinnerFormViewModel.
The book shows images of using m.Dinner.Title but then in the code that should be used it shows just useing m.Title which no longer exists when inheriting from DinnerFormViewModel.
Using m.Dinner. for everything works ok but the editing no longer works as I assume the fields are now named wrong? I fixed this issue by adding Title, Country, Address etc. properties to the view model and then going back to using just m.title. Is this how it is supposed to be done? I am very confused!
Any help would be appreciated
Thanks.
|