Esempio n. 1
0
        public static string GetActiveColor(this Franchise franchise)
        {
            var firstEntry = franchise.GetFirstEntry();

            return(firstEntry != null
                ? firstEntry.Movie?.GetActiveColor() ?? firstEntry.Series !.GetActiveColor()
                : String.Empty);
        }
Esempio n. 2
0
 public static Title?GetListOriginalTitle(this Franchise franchise) =>
 franchise.ShowTitles ? franchise.OriginalTitle ! : franchise.GetFirstEntry()?.GetOriginalTitle();
Esempio n. 3
0
 public static Title?GetOriginalTitle(this Franchise franchise) =>
 franchise.Titles.Count > 0
         ? franchise.OriginalTitle !
         : franchise.GetFirstEntry()?.GetOriginalTitle();
Esempio n. 4
0
 public static int GetStartYear(this Franchise franchise) =>
 franchise.GetFirstEntry()?.GetStartYear() ?? default;