public FrmRecAdherent(string debNom, BindingSource adherentBS) : this()
        {
            adherentBSG = adherentBS;
            repository  = new PersonnelRepository();
            List <Employee> employees = repository.GetEmployees().Where(a => a.LastName.StartsWith(debNom, StringComparison.CurrentCultureIgnoreCase)).ToList();

            if (employees.Count > 0)
            {
                adherentBindingSource.DataSource = employees;
            }
        }
 private Employee GetEmployeeByID(string employeeID)
 {
     repository = new PersonnelRepository();
     return(repository.GetEmployees().Where(a => a.EmployeeID == employeeID).FirstOrDefault());
 }
 private void FrmAdherent_Load(object sender, EventArgs e)
 {
     adherentBindingSource.DataSource = repository.GetEmployees();
 }