示例#1
0
        /// <summary>
        /// Get all tv series lists
        /// </summary>
        /// <returns>TvViewModel</returns>
        public ActionResult Index()
        {
            TvViewModel model = new TvViewModel();

            model.GetLatest      = _tvApi.GetLatest();
            model.GetPopulor     = _tvApi.GetPopulor();
            model.GetTopRated    = _tvApi.GetTopRated();
            model.GetAiringToday = _tvApi.GetAiringToday();

            return(View(model));
        }
        public TvDTO GetLatest()
        {
            var tv = _tvApi.GetLatest();

            return(tv);
        }