public IQueryable<Application> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Application> query) { var pipelinePosition = parameters.PipelinePositionOrDefault(); if (pipelinePosition.IsNotNull()) { if (EnumHelper<PipelinePosition>.Parse(pipelinePosition.ParameterValue) == PipelinePosition.Approved) { return query.IsGuarantorApproved(); } } return query; }