aron
aron

Reputation: 2886

How MVC Update Model works with incomplete objects?

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!

enter image description here

Upvotes: 2

Views: 313

Answers (2)

Max Toro
Max Toro

Reputation: 28618

Remove the requisitionForm parameter, and call UpdateModel(requisition)

Upvotes: 3

Related Questions