I have a form that should fill 2 models. I usually use the ModelBinderAttribute attribute for the post action of the ie form
[Authorize] [AcceptVerbs("POST")] public ActionResult Add([GigBinderAttribute]Gig gig, FormCollection formCollection) {
In my form, the fields are called the same as the properties of the models ...
However, in this case, I have 2 different models that need to be filled.
How can I do it? Any ideas? Is it possible?
asp.net-mvc
iasksillyquestions
source share