revolutionkpi
revolutionkpi

Reputation: 2682

How can I get a collection and a Model in one Action in MVC?

How can I get a collection and a Model in one Action in MVC (http Post)?

Upvotes: 0

Views: 94

Answers (2)

Alexander Schmidt
Alexander Schmidt

Reputation: 5733

Not sure, if I got you right. But you could use a class wrapping it. The class gets a property for the collection and another one for the model and works as the new model then.

Upvotes: 2

Muresan Titus
Muresan Titus

Reputation: 59

if i understand what you need correctly i think that you can add the collection to the model then send it

Upvotes: 0

Related Questions