コード例 #1
0
        public IHttpActionResult Get()
        {
            TvShowServices tvShowServices = CreateTvShowServices();
            var            tvShows        = tvShowServices.GetTvShows();

            return(Ok(tvShows));
        }
コード例 #2
0
        public IHttpActionResult Get(string title)
        {
            TvShowServices tvShowServices = CreateTvShowServices();
            var            tvshow         = tvShowServices.GetTvShowByTitle(title);

            return(Ok(tvshow));
        }
コード例 #3
0
        private TvShowServices CreateTvShowServices()
        {
            // var userId = Guid.Parse(User.Identity.GetUserId());
            var service = new TvShowServices();

            return(service);
        }