Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@foreach (FacetInfo facetInfo in Model.FacetResults)
{
<p>@facetInfo.FacetName</p>
<ul>
@foreach (var facet in facetInfo.Facets)
{
var facetText = @facet.Key + "(" + facet.Value + ")";
var filter = string.IsNullOrEmpty(@Model.Filter) ? string.Empty : @Model.Filter + " and ";
<p style="margin: 0">@Html.ActionLink(facetText, "Search", new AirportSearch() {Top = pageSize, Skip = currentPage * pageSize, Filter = filter + @facetInfo.FacetName + " eq '" + @facet.Key + "'"})</p>
}
</ul>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment