private void SaveChanges_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         ClientServerController.SaveChangesExperts(list);
         dbEntities.SaveChangesAsync();
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
         //throw;
     }
 }
        private void Cancel_Click(object sender, RoutedEventArgs e)
        {
            Experts item = (Experts)DataGrid.SelectedItem;

            if (item != null)
            {
                dbEntities.Experts.Remove(item);
            }

            try
            {
                ClientServerController.SaveChangesExperts(list);
                dbEntities.SaveChanges();
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }
        }