void IJobAdSearchesCommand.UpdateJobAdSearch(Guid updaterId, JobAdSearch search)
        {
            if (!CanAccessSearch(updaterId, search))
            {
                throw new JobAdSearchesPermissionsException(updaterId, search.Id);
            }

            if (search.Criteria != null)
            {
                search.Criteria.Prepare();
            }
            search.Name = search.Name.NullIfEmpty();
            search.Validate();
            _repository.UpdateJobAdSearch(search);
        }