public IEnumerable<PlaylistBase> PlaylistGetAll() { // Playlist get all var o = ds.Playlists .Include("Tracks") .OrderBy(p => p.Name); return Mapper.Map<IEnumerable<PlaylistBase>>(o); }
// GET: Playlists public ActionResult Index() { // Study the Index view return(View(m.PlaylistGetAll())); }