static void Main(string[] args)
 {
     //var employeeRepo = new EmployeeEFRepo();
     var employeeRepo = new EmployeeSqlRepository();
     var service = new EmployeeService(employeeRepo);
     var e = service.New();
     Console.WriteLine(e.Code);
 }
        static void MainRepo(string[] args)
        {
            using (var empRepo = new EmployeeSqlRepository())
            {
                //Employee employee = GetEmployeeByCode("E01");
                var employee = empRepo.GetByCode("E01");
                Console.WriteLine("{0} {1}", employee.Name, employee.Birthdate);

                //var emps = GetAllEmployee();
                var emps = empRepo.GetAll();
                foreach (var e in emps)
                    Console.WriteLine(e.Name);
            }
        }