private CategoryForLanguage ToCategoryForLanguage(DemoCategory category) { var demos = GetDemosForCategory(category) .Select(ToDemoForLanguage) .ToList(); return(new CategoryForLanguage { Slug = category.Slug, Demos = demos }); }
private CategoryWithDemoVersions ToCategoryWithVersions(DemoCategory category) { var demos = GetDemosForCategory(category) .Select(ToDemoWithVersion) .ToList(); return(new CategoryWithDemoVersions { Slug = category.Slug, Title = category.Title, Demos = demos }); }
private IEnumerable <Demo> GetDemosForCategory(DemoCategory category) => category.Demos .Where(x => _settings.ConferenceMode || x.ConferenceOnly == false);
public InfoAttribute(DemoCategory catg, string desc) { this.Category = catg; this.Description = desc; }
public InfoAttribute(DemoCategory catg) { this.Category = catg; }