public IEnumerable <Playlist> GetPlaylistByUserId() { var userid = HttpContext.Session.GetInt32("UserId"); var item = _playlistRepo.GetAllPlaylistByUserId(userid).OrderByDescending(i => i.Id); if (item == null) { return((IEnumerable <Playlist>)StatusCode(404)); } return(item); }