Can you help with this MVC ViewModel issue?
问题 I have a problem with an MVC view that I just cannot seem to solve. Here it is. 1) I have an index view that displays a list of retailers with data from the retailers table. So far so good. 2) I also want to include the retailer categories for each retailer which are stored in a RetailersCategories table where each retailer can have multiple categories I have tried a few things but cannot seem to make this work. The closest I came to what I wanted was using a view model. I have included the