Ejemplo n.º 1
0
        public ActionResult RecentlyPlayedTracksShort()
        {
            CustomToken token = ViewBag.Token;

            if (token.IsTokenEmpty())
            {
                return(null);
            }

            var cursorPagingPlayHistory = _paradifyService.GetUsersRecentlyPlayedTracks(token, 10);

            if (cursorPagingPlayHistory != null && cursorPagingPlayHistory.Items != null && cursorPagingPlayHistory.Items.Count > 0)
            {
                return(PartialView("~/Views/Shared/_RecentlyPlayedTracksShort.cshtml", cursorPagingPlayHistory));
            }

            return(null);
        }
Ejemplo n.º 2
0
 private CursorPaging <PlayHistory> GetRecentlyPlayedTracks(CustomToken token)
 {
     return(_paradifyService.GetUsersRecentlyPlayedTracks(token, 10));
 }