private void RefreshGrid() { Rol rol = new Rol(); dgRol.ItemsSource = null; dgRol.ItemsSource = RolRepository.AllRolTolist().OrderBy(r => r.Name); }
public void RefreshComboBox() { cbRol.ItemsSource = RolRepository.AllRolTolist(); cbRol.DisplayMemberPath = "Name"; cbRol.DisplayMemberPath = "Id"; }