Assignment6.Controllers.Manager.PlaylistGetAll C# (CSharp) Method

PlaylistGetAll() public method

public PlaylistGetAll ( ) : IEnumerable
return IEnumerable
        public IEnumerable<PlaylistBase> PlaylistGetAll()
        {
            // Playlist get all

            var o = ds.Playlists
                .Include("Tracks")
                .OrderBy(p => p.Name);

            return Mapper.Map<IEnumerable<PlaylistBase>>(o);
        }

Usage Example

        // GET: Playlists
        public ActionResult Index()
        {
            // Study the Index view

            return(View(m.PlaylistGetAll()));
        }
All Usage Examples Of Assignment6.Controllers.Manager::PlaylistGetAll