Ejemplo n.º 1
0
        public EmployeeRegistrationReply registerEmployee(Employee empregd)
        {
            Console.WriteLine("In registerEmployee");
            EmployeeRegistrationReply empregreply = new EmployeeRegistrationReply();

            EmployeeRegistration.getInstance().Add(empregd);
            empregreply.Name = empregd.Name;
            empregreply.Age  = empregd.Age;
            empregreply.ID   = empregd.EmployeeID;
            empregreply.registrationStatus = "Successful";
            return(empregreply);
        }
Ejemplo n.º 2
0
        public EmployeeRegistrationReply addEmployee(Employees empregd)
        {
            Console.WriteLine("In registerStudent");
            EmployeeRegistrationReply empregreply = new EmployeeRegistrationReply();

            EmployeeRegistration.getInstance().Add(empregd);
            empregreply.firstName          = empregd.firstName;
            empregreply.lastName           = empregd.lastName;
            empregreply.Email              = empregd.Email;
            empregreply.HireDate           = empregd.HireDate;
            empregreply.EmployeeID         = empregd.EmployeeID;
            empregreply.DepartmentName     = empregd.DepartmentName;
            empregreply.Salary             = empregd.Salary;
            empregreply.RegistrationStatus = "Successful";
            return(empregreply);
        }