public bool Exist(string matricule) { bool exist = false; if (employeRepository.GetEmployeByMatricule(matricule) != null) { exist = true; } return(exist); }