public static webModel.Facet ToWebModel(this coreModel.FacetGroup facetGroup, params string[] appliedFilters) { var retVal = new webModel.Facet { FacetType = facetGroup.FacetType, Field = facetGroup.FieldName, Values = facetGroup.Facets.Select(f => f.ToWebModel(appliedFilters)).ToArray() }; return retVal; }
public static webModel.Facet ToWebModel(this coreModel.FacetGroup facetGroup, params string[] appliedFilters) { var retVal = new webModel.Facet { FacetType = facetGroup.FacetType, Field = facetGroup.FieldName, Values = facetGroup.Facets.Select(f => f.ToWebModel(appliedFilters)).ToArray() }; return(retVal); }