public void UpdateTable(DataGrid dataGrid, IMilitaryIDRepository militaryIDRepository)
 {
     if (SearchTextBox.Text.Length > 0)
     {
         dataGrid.ItemsSource = militaryIDRepository.GetAllBySearchString(SearchTextBox.Text);
         return;
     }
     dataGrid.ItemsSource = militaryIDRepository.GetAll();
 }
 public MilitaryIDsUserControl()
 {
     _militaryIDRepository = App.ServiceProvider.GetService <IMilitaryIDRepository>();
     InitializeComponent();
     UpdateData();
 }