How to edit multiple models in a single Razor View

后端 未结 3 1747
小鲜肉
小鲜肉 2020-12-01 11:51

I am new to MVC3, I have an multiple models like BussinessDetails,ContactPerson,ServiceArea,Address and many more models.

3条回答
  •  星月不相逢
    2020-12-01 12:17

    One alternative way is to use C# Tuples
    http://www.dotnetperls.com/tuple
    In your view and controller, define a tuple that is a list of your classes(models)

提交回复
热议问题