private string CreateFilteredContent(Strategy2020Filter filter) { Strategy2020HtmlContenBuilder htmlBuilder = new Strategy2020HtmlContenBuilder(); Strategy2020ContentBuilder contentBuilder = new Strategy2020ContentBuilder(); List <Strategy2020DTO> list = contentBuilder.BuildStrategy2020List(); list = filter.ApplyFilters(); if (filter.TypeFilter == 0 && filter.AgendaFilter == 0 && filter.PolicyFilter == 0 && filter.RuleFilter == 0 && filter.ProcessFilter == 0 && filter.SubProcessFilter == 0 && filter.ApplicationFilter == 0 && filter.ModuleFilter == 0 ) { list = filter.ApplyDefaultFilter(list); } string content = htmlBuilder.BuildHtml(list); return(content); }
public List <Strategy2020DTO> GetList(Strategy2020Filter filter) { Strategy2020ContentBuilder contentBuilder = new Strategy2020ContentBuilder(); List <Strategy2020DTO> list = contentBuilder.BuildStrategy2020List(); list = filter.ApplyFilters(); if (filter.TypeFilter == 0 && filter.AgendaFilter == 0 && filter.PolicyFilter == 0 && filter.RuleFilter == 0 && filter.ProcessFilter == 0 && filter.SubProcessFilter == 0 && filter.ApplicationFilter == 0 && filter.ModuleFilter == 0 ) { list = filter.ApplyDefaultFilter(list); } return(list); }