Beispiel #1
0
        private dynamic show_song(int songid)
        {
            // Get the current user id
            User user = fetchuser();

            if (user == null)
            {
                // Check to make sure user is logged in
                return(user_login());
            }
            // Get the song
            Song song = _context.PopulateSongSingle(songid);

            ViewBag.dashboard = false;
            ViewBag.userid    = user.Id;
            // Render the page
            return(View("Song", song));
        }