public static string GetCategory(string displayCategory) { return(TorrentCategoryTuples.FirstOrDefault(x => x.Value == displayCategory).Key); }
public static string GetDisplayCategory(string category) { return(TorrentCategoryTuples.Any(x => x.Key == category) ? TorrentCategoryTuples.FirstOrDefault(x => x.Key == category).Value : DisplayTorrentCategories.Anime_Raw); }