コード例 #1
0
        public async Task <string> getNextweekReportAsync()
        {
            String reportstring = "SHOW_NAME;MONDAY;TUESDAY;WEDNESDAY;THURSDAY;FRIDAY;SATURDAY;SUNDAY";

            var tvShows = await _service.GetAllAsync();

            var l = tvShows.Where(show => show.Status != "Ended");

            return(reportstring);
        }
コード例 #2
0
        // GET: api/TvShows
        public async Task <IActionResult> GetAllTvShows()
        {
            var tvShows = await _service.GetAllAsync();

            return(Ok(tvShows));
        }