Reputation: 2886
I have a view that is bound to an object called "Requisition" On this view we are only modifying is child records.
My question is: When I submit the form I have the object requisitionForm, and this object is only partially complete.
How do I save just the new changes?
Should I take the requisitionForm (incomplete) and merge it with requisition (complete) ?
thanks!
Upvotes: 2
Views: 313
Reputation: 28618
Remove the requisitionForm
parameter, and call UpdateModel(requisition)
Upvotes: 3
Reputation: 2450
Is this what you want? http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/
Upvotes: 0