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