Create base method for seaching entity