public JsonResult GetFilterSearchContent(SortFilterPageOptions options, [FromServices] IBookFilterDropdownService service)
        {
            var traceIdent = HttpContext.TraceIdentifier;

            return(Json(
                       new TraceIndentGeneric <IEnumerable <DropdownTuple> >(
                           traceIdent,
                           service.GetFilterDropDownValues(
                               options.FilterBy))));
        }
Beispiel #2
0
 public JsonResult OnGet(BooksFilterBy filterBy)
 {
     return(new JsonResult(_filterService.GetFilterDropDownValues(filterBy)));
 }