public string SearchTVSeries(string paramList)
        {
            JavaScriptSerializer jsonObj = new JavaScriptSerializer();
            string[] parameters = paramList.Split(',');
            string channel = "";
            var genre = "";
            var tvSeries = new List<TV>();
            if (parameters.Length > 0)
            {
                channel = parameters[0];
            }
            if (parameters.Length > 0)
            {
                genre = parameters[1];
            }
            try{
                var tvSeriesDAL = new TVSearchDAL();
                tvSeries = tvSeriesDAL.SearchTVSeriesAndUpdateHits(channel, genre);
            }
            catch (Exception)
            {

            }
            return (jsonObj.Serialize(tvSeries));
        }
        public string SearchTopFiveTVSeries(string input)
        {
            var tvDAL = new TVSearchDAL();
            var topFiveTVSeries = new List<TV>();
            try
            {
                topFiveTVSeries = tvDAL.GetTopFiveTVSeries();
            }
            catch (Exception)
            {

            }
            JavaScriptSerializer jsonObj = new JavaScriptSerializer();
            return jsonObj.Serialize(topFiveTVSeries);
        }
        // GET: /TVSearch/
        public ActionResult Index()
        {
            ViewBag.Message = "Search TVSeries";
            ViewBag.ChannelList = new List<string>();//subs Channel
            ViewBag.GenreList = new List<string>();
            var tvSeriesList = new List<TV>();
            var tvSearchDAL = new TVSearchDAL();
            try
            {
                ViewBag.GenreList = tvSearchDAL.GetTVGenres();
                ViewBag.ChannelList = tvSearchDAL.GetTVChannels();
                //Causing  significant  page loads
                //tvSeriesList = tvSearchDAL.GetTopFiveTVSeries(); //do we need this?
            }
            catch (Exception)
            {

            }
            return View();
        }