Example #1
0
 public ActionResult Generate_Hypster_MostLiked_Playlists()
 {
     if (Session["Roles"] != null && Session["Roles"].Equals("Admin"))
     {
         hypster_tv_DAL.playlistManagement playlistManager = new hypster_tv_DAL.playlistManagement();
         List <hypster_tv_DAL.Playlist>    model           = new List <hypster_tv_DAL.Playlist>();
         model = playlistManager.GetMostLikedPlaylistsAdmin();
         return(View(model));
     }
     else
     {
         return(RedirectPermanent("/home/"));
     }
 }