Home > database >  ASP.NET Core 5 MVC Using View Models with enumeration
ASP.NET Core 5 MVC Using View Models with enumeration

Time:11-10

I have 2 models; TypeOne and Project_Screen. I need a view that makes 2 tables with information from both of those tables. I tried to use this guide to making a view model which helped but isnt doing quite the same thing I am: enter image description here

Note: So according to your scenario you can use like this @foreach (var item in Model.Project_Screen). Additionally, be conscious about your naming convention like Project_Screen Project_Screen is confusing either practice like Project_Screen ProjectScreen or ProjectScreen Project_Screen.

Hope above steps guide you accordingly. You can enhance your Idea more about this on our official document here

  • Related