public JsonResult GetFilterSearchContent(SortFilterPageOptions options, [FromServices] IBookFilterDropdownService service) { var traceIdent = HttpContext.TraceIdentifier; return(Json( new TraceIndentGeneric <IEnumerable <DropdownTuple> >( traceIdent, service.GetFilterDropDownValues( options.FilterBy)))); }
public FilterModel(EfCoreContext context) { _filterService = new BookFilterDropdownService(context); }
public FilterModel(CrUDOnlyDbContext context) { _filterService = new BookFilterDropdownService(context); }