//GET api/playlist/5
        public async Task <PlaylistModel> Get(int id)
        {
            List <PlaylistModel> list = await PlayListRepository.GetAllPlayListsAsync();

            if (id < list.Count)
            {
                return(list[id]);
            }
            else
            {
                return(null);
            }
        }
 // GET api/playlist
 public IEnumerable <PlaylistModel> Get()
 {
     return(PlayListRepository.GetAllPlayLists());
 }