private void AddEmployee() { try { string CNP, nume, prenume, post; IOEmployee(out CNP, out nume, out prenume, out post); appManager.AddEmployee(CNP, nume, prenume, post); } catch (ValidationException e) { Console.WriteLine(e.Message); Console.WriteLine("Va rog introduceti date valide!"); AddEmployee(); } catch (RepositoryException e) { Console.WriteLine(e.Message); Console.WriteLine("Va rog introduceti date valide!"); AddEmployee(); } }