public void FilterLegislatorsByFirstMiddleOrLastName(string filter, bool filterSelectedStateOrTerr = true)
 {
     if (filterSelectedStateOrTerr)
     {
         try
         {
             StateOrTerritory selectedStateOrTerr = _statesAndTerrWithDescription[_statesAndTerrSpinner.SelectedItemPosition].Item1;
             _legislatorAdapter.UpdateLegislators(_legislators.FilterByState(selectedStateOrTerr).FilterByFirstMiddleOrLastName(filter));
         }
         catch (Exception ex)
         {
             Logger.Error("Error encountered filtering Legislators by first, middle, or last name.", ex);
         }
     }
     else
     {
         _legislatorAdapter.UpdateLegislators(_legislators.FilterByFirstMiddleOrLastName(filter));
     }
 }
 public void UpdateLegislators(List <Legislator> legislators)
 {
     _legislatorAdapter?.UpdateLegislators(legislators);
 }