public async Task <IActionResult> Edit(int id, [Bind("Id,SeriesStatusName")] SeriesStatus seriesStatus) { if (id != seriesStatus.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(seriesStatus); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!SeriesStatusExists(seriesStatus.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(ListSeriesStatuses))); } return(View(seriesStatus)); }
/// <summary> /// Initializes a new instance of the <see cref="ItemQuery" /> class. /// </summary> public ItemQuery() { LocationTypes = new LocationType[] { }; ExcludeLocationTypes = new LocationType[] { }; SortBy = new string[] { }; Filters = new ItemFilter[] { }; Fields = new ItemFields[] { }; MediaTypes = new string[] { }; VideoTypes = new VideoType[] { }; EnableTotalRecordCount = true; Artists = new string[] { }; Studios = new string[] { }; Genres = new string[] { }; StudioIds = new string[] { }; IncludeItemTypes = new string[] { }; ExcludeItemTypes = new string[] { }; Years = new int[] { }; PersonTypes = new string[] { }; Ids = new string[] { }; ArtistIds = new string[] { }; PersonIds = new string[] { }; ImageTypes = new ImageType[] { }; AirDays = new DayOfWeek[] { }; SeriesStatuses = new SeriesStatus[] { }; EnableImageTypes = new ImageType[] { }; }
/// <summary> /// Initializes a new instance of the <see cref="ItemQuery"/> class. /// </summary> public ItemQuery() { SortBy = new string[] {}; Filters = new ItemFilter[] {}; Fields = new ItemFields[] {}; MediaTypes = new string[] {}; VideoTypes = new VideoType[] {}; Genres = new string[] { }; Studios = new string[] { }; IncludeItemTypes = new string[] { }; ExcludeItemTypes = new string[] { }; Years = new int[] { }; PersonTypes = new string[] { }; Ids = new string[] { }; Artists = new string[] { }; ImageTypes = new ImageType[] { }; AirDays = new DayOfWeek[] { }; SeriesStatuses = new SeriesStatus[] { }; }
/// <inheritdoc /> public List <Series> GetSeries(GenreType genreType, SeriesStatus seriesStatus, int year) { var genreParam = genreType == GenreType.All ? "all" : ((int)genreType).ToString(); var seriesParam = seriesStatus == SeriesStatus.Opened ? "o" : ((int)seriesStatus).ToString(); return(GetParametrizeSeries(genreParam, seriesParam, year.ToString())); }
public async Task <IActionResult> Create([Bind("Id,SeriesStatusName")] SeriesStatus seriesStatus) { if (ModelState.IsValid) { _context.Add(seriesStatus); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(ListSeriesStatuses))); } return(View(seriesStatus)); }
public InternalItemsQuery() { MinSimilarityScore = 20; GroupByPresentationUniqueKey = true; EnableTotalRecordCount = true; DtoOptions = new DtoOptions(); AlbumNames = new string[] { }; ArtistIds = new string[] { }; ExcludeArtistIds = new string[] { }; ExcludeProviderIds = new Dictionary <string, string>(StringComparer.OrdinalIgnoreCase); BlockUnratedItems = new UnratedItem[] { }; Tags = new string[] { }; OfficialRatings = new string[] { }; SortBy = new string[] { }; MediaTypes = new string[] { }; Keywords = new string[] { }; IncludeItemTypes = new string[] { }; ExcludeItemTypes = new string[] { }; Genres = new string[] { }; StudioIds = new string[] { }; GenreIds = new string[] { }; ImageTypes = new ImageType[] { }; VideoTypes = new VideoType[] { }; Years = new int[] { }; PersonTypes = new string[] { }; PersonIds = new string[] { }; ChannelIds = new string[] { }; ItemIds = new string[] { }; ExcludeItemIds = new string[] { }; AncestorIds = new string[] { }; TopParentIds = new string[] { }; ExcludeTags = new string[] { }; ExcludeInheritedTags = new string[] { }; LocationTypes = new LocationType[] { }; PresetViews = new string[] { }; SourceTypes = new SourceType[] { }; ExcludeSourceTypes = new SourceType[] { }; TrailerTypes = new TrailerType[] { }; AirDays = new DayOfWeek[] { }; SeriesStatuses = new SeriesStatus[] { }; OrderBy = new List <Tuple <string, SortOrder> >(); }
public InternalItemsQuery() { MinSimilarityScore = 20; GroupByPresentationUniqueKey = true; EnableTotalRecordCount = true; DtoOptions = new DtoOptions(); AlbumIds = Array.Empty <Guid>(); ArtistIds = Array.Empty <Guid>(); AlbumArtistIds = Array.Empty <Guid>(); ContributingArtistIds = Array.Empty <Guid>(); ExcludeArtistIds = Array.Empty <Guid>(); ExcludeProviderIds = new Dictionary <string, string>(StringComparer.OrdinalIgnoreCase); HasAnyProviderId = new Dictionary <string, string>(StringComparer.OrdinalIgnoreCase); BlockUnratedItems = new UnratedItem[] { }; Tags = Array.Empty <string>(); OfficialRatings = Array.Empty <string>(); MediaTypes = Array.Empty <string>(); IncludeItemTypes = Array.Empty <string>(); ExcludeItemTypes = Array.Empty <string>(); Genres = Array.Empty <string>(); StudioIds = Array.Empty <Guid>(); GenreIds = Array.Empty <Guid>(); BoxSetLibraryFolders = Array.Empty <Guid>(); ImageTypes = new ImageType[] { }; VideoTypes = new VideoType[] { }; Years = Array.Empty <int>(); PersonTypes = Array.Empty <string>(); PersonIds = Array.Empty <Guid>(); ChannelIds = Array.Empty <Guid>(); ItemIds = Array.Empty <Guid>(); ExcludeItemIds = Array.Empty <Guid>(); AncestorIds = Array.Empty <Guid>(); TopParentIds = Array.Empty <Guid>(); ExcludeTags = Array.Empty <string>(); ExcludeInheritedTags = Array.Empty <string>(); PresetViews = Array.Empty <string>(); TrailerTypes = new TrailerType[] { }; SourceTypes = new SourceType[] { }; SeriesStatuses = new SeriesStatus[] { }; OrderBy = Array.Empty <ValueTuple <string, SortOrder> >(); }
public InternalItemsQuery() { GroupByPresentationUniqueKey = true; EnableTotalRecordCount = true; AlbumNames = new string[] { }; ArtistNames = new string[] { }; BlockUnratedItems = new UnratedItem[] { }; Tags = new string[] { }; OfficialRatings = new string[] { }; SortBy = new string[] { }; MediaTypes = new string[] { }; IncludeItemTypes = new string[] { }; ExcludeItemTypes = new string[] { }; Genres = new string[] { }; Studios = new string[] { }; StudioIds = new string[] { }; GenreIds = new string[] { }; ImageTypes = new ImageType[] { }; VideoTypes = new VideoType[] { }; Years = new int[] { }; PersonTypes = new string[] { }; PersonIds = new string[] { }; ChannelIds = new string[] { }; ItemIds = new string[] { }; AncestorIds = new string[] { }; TopParentIds = new string[] { }; ExcludeTags = new string[] { }; ExcludeInheritedTags = new string[] { }; LocationTypes = new LocationType[] { }; ExcludeLocationTypes = new LocationType[] { }; PresetViews = new string[] { }; SourceTypes = new SourceType[] { }; ExcludeSourceTypes = new SourceType[] { }; TrailerTypes = new TrailerType[] { }; AirDays = new DayOfWeek[] { }; SeriesStatuses = new SeriesStatus[] { }; }
/// <summary> /// Initializes a new instance of the <see cref="ItemQuery" /> class. /// </summary> public ItemQuery() { LocationTypes = new LocationType[] { }; ExcludeLocationTypes = new LocationType[] { }; SortBy = new string[] { }; Filters = new ItemFilter[] {}; Fields = new ItemFields[] {}; MediaTypes = new string[] {}; VideoTypes = new VideoType[] {}; Genres = new string[] { }; Studios = new string[] { }; IncludeItemTypes = new string[] { }; ExcludeItemTypes = new string[] { }; Years = new int[] { }; PersonTypes = new string[] { }; Ids = new string[] { }; Artists = new string[] { }; ImageTypes = new ImageType[] { }; AirDays = new DayOfWeek[] { }; SeriesStatuses = new SeriesStatus[] { }; }
public List <LibrarySeries> GetShelf(SeriesStatus status) { return(_service.GetShelf(status)); }
public InternalItemsQuery() { GroupByPresentationUniqueKey = true; EnableTotalRecordCount = true; DtoOptions = new DtoOptions(); AlbumNames = new string[] { }; ArtistNames = new string[] { }; ExcludeArtistIds = new string[] { }; ExcludeProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); BlockUnratedItems = new UnratedItem[] { }; Tags = new string[] { }; OfficialRatings = new string[] { }; SortBy = new string[] { }; MediaTypes = new string[] { }; Keywords = new string[] { }; IncludeItemTypes = new string[] { }; ExcludeItemTypes = new string[] { }; Genres = new string[] { }; Studios = new string[] { }; StudioIds = new string[] { }; GenreIds = new string[] { }; ImageTypes = new ImageType[] { }; VideoTypes = new VideoType[] { }; Years = new int[] { }; PersonTypes = new string[] { }; PersonIds = new string[] { }; ChannelIds = new string[] { }; ItemIds = new string[] { }; ExcludeItemIds = new string[] { }; AncestorIds = new string[] { }; TopParentIds = new string[] { }; ExcludeTags = new string[] { }; ExcludeInheritedTags = new string[] { }; LocationTypes = new LocationType[] { }; ExcludeLocationTypes = new LocationType[] { }; PresetViews = new string[] { }; SourceTypes = new SourceType[] { }; ExcludeSourceTypes = new SourceType[] { }; TrailerTypes = new TrailerType[] { }; AirDays = new DayOfWeek[] { }; SeriesStatuses = new SeriesStatus[] { }; OrderBy = new List<Tuple<string, SortOrder>>(); }
public virtual void Update( Series other ) { Debug.Assert( Id == other.Id ); Added = other.Added; AddedBy = other.AddedBy; AirDays = other.AirDays; AirTime = other.AirTime; BannerLocation = other.BannerLocation; ContentRating = other.ContentRating; FirstAired = other.FirstAired; ImdbId = other.ImdbId; LastUpdated = other.LastUpdated; Name = other.Name; Overview = other.Overview; Rating = other.Rating; Ratings = other.Ratings; Runtime = other.Runtime; Status = other.Status; // TODO: Update actors // TODO: Update genres // TODO: Update language }
/// <inheritdoc /> public List <Series> GetSeries(SeriesStatus seriesStatus) { var seriesParam = seriesStatus == SeriesStatus.Opened ? "o" : ((int)seriesStatus).ToString(); return(GetParametrizeSeries("all", seriesParam, "all")); }
public List <LibrarySeries> GetSeries(SeriesStatus status) { return(_db.Query <LibrarySeries>("GetSeriesByStatus", new { Status = (int)status })); }
public List <LibrarySeries> GetShelf(SeriesStatus status) { return(_library.GetSeries(status)); }