示例#1
0
        public bool AskNewEmployeeDetails(string ProjectName)
        {
            Employee Employee = new Employee
            {
                ID = Guid.NewGuid()
            };

            Console.Write("\n>>Enter the new employee details\nName : ");
            Employee.FullName = Console.ReadLine().Trim();
            Console.Write("PUID : ");
            Employee.PUID = Console.ReadLine().Trim();
            Console.WriteLine("JobTitle : ");
            Console.WriteLine("1->Senior Technical Lead\n2->Business Analyst\n" +
                              "3->Software Developer\n4->QA Tester");
            Console.Write("Enter the right job number : ");
            Employee.JobTitle = ValidatingKeys.AssigningJob();
            Employee.EmailID  = "";

            return(employeeValidator.ValidateToAdd(Employee, ProjectName));
        }