2
Vote

edit dinner does not save changes.

description

Hi
I have today 2012 january 18th. downloaded NerdDinner (NerdDinner 2.0 Complete ASP.NET MVC Sample App - http://nerddinner.codeplex.com/releases/view/45647) and am experiencing problems with the edit dinner functionality. It will not save updates to a dinner. I do not get any exception, everything runs, but changes are however never made.

comments

samarmir wrote Jan 18, 2012 at 7:56 PM

Found the culprit.
In DinnersController > public ActionResult Edit(int id, FormCollection collection)
changes UpdateModel(dinner, "Dinner");
to
UpdateModel(dinner);

mengxiao88 wrote Jun 11, 2012 at 4:20 PM

thanks so much for the reply...

fshy wrote Apr 16, 2013 at 9:06 PM

I had same problem as yours.


Dinner dinner = dinnerRepository.GetDinner(id);
DinnerFormViewModel dfvm = new DinnerFormViewModel(dinner);

UpdateModel(dfvm);