//TODO change to _episodeId
        public ActionResult Save(int _seasonId, int?_episodeId)
        {
            var vm = new vmEntity(_genreRepository.GetAll().OrderBy(x => x.Title));

            vm.Season      = _seasonRepository.GetById(_seasonId);
            vm.Episode     = _episodeId != 0 ? _episodeRepository.GetById(_episodeId.GetValueOrDefault()) : GetNewEpisodeForEdit(_episodeId.GetValueOrDefault(), _seasonId);
            vm.PageHeading = _episodeId != null ? $"Edit Episode {vm.Episode.Title} Season {vm.Season.Season_Number}" : $"Add Episode to Season {vm.Season.Season_Number}";

            return(PartialView("_savePanel", vm));
        }
        public IHttpActionResult Get(int Id)
        {
            var episode = _episodeRepository.GetById(Id);

            if (episode == null)
            {
                return(NotFound());
            }

            return(Ok(episode));
        }