So I have a View Model like this:
Public Class CategoryViewModel Public Property ID As Integer Public Property Name As String Public Property Display As Boolean Public Property DisplayIndex As Integer End Class And then this:
Public Class CategoriesViewModel Public Property Categories As IEnumerable(Of CategoryViewModel) End Class How do I map a collection of categories (Domain.Category) to the Categories (CategoryViewModel) property in the CategoriesViewModel?
Also, how would you handle a collection of Sub Categories? Would you make another View Model for that and have a collection of those on the CategoryViewModel?