public SearchCriteriaValidator(ISearchCriteriaServices searchCriteriaServices)
        {
            CascadeMode = CascadeMode.StopOnFirstFailure;
            RuleSet("AddCriteria", () =>
            {
                //RuleFor(x => x.).NotEmpty();
            });

            RuleSet("UpdateCriteria", () =>
            {
                //   RuleFor(x => x.Id).MustAsync(async (id, token) =>
                //(await searchCriteriaServices.ExistsAsync(id).ConfigureAwait(false)));
            });
        }
 public SearchCriteriaController(ISearchCriteriaServices searchCriteriaServices)
 {
     this._searchCriteriaService = searchCriteriaServices;
 }