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); }
private CursorPaging <PlayHistory> GetRecentlyPlayedTracks(CustomToken token) { return(_paradifyService.GetUsersRecentlyPlayedTracks(token, 10)); }