Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
3762 Points
809 Posts
Apr 06, 2012 05:29 PM|LINK
THIS is what your viewmodel should look like....
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Component2.Models;
public class IndexViewModel { public List<Genre> Genres { get; set; } public List<Artist> Directors { get; set; }
public IndexViewModel(List<Genre> _genres, List<Director> _directors) { Genres = _genres; Directors = _directors; } }
JohnLocke
Contributor
3762 Points
809 Posts
Re: Music Store Tutorial: Store View
Apr 06, 2012 05:29 PM|LINK
THIS is what your viewmodel should look like....
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Component2.Models;
public class IndexViewModel {
public List<Genre> Genres { get; set; }
public List<Artist> Directors { get; set; }
public IndexViewModel(List<Genre> _genres, List<Director> _directors) {
Genres = _genres;
Directors = _directors;
}
}