Example #1
0
        public StudentRegistrationReply RegisterStudent(Student stuReg)
        {
            Console.WriteLine("In RegisterStudent()");
            StudentRegistrationReply StuRegReply = new StudentRegistrationReply();

            StudentRegistration.GetInstance().Add(stuReg);
            StuRegReply.Name = stuReg.Name;
            StuRegReply.Age  = stuReg.Age;
            StuRegReply.RegistrationNumber = stuReg.RegistrationNumber;
            StuRegReply.RegistrationStatus = "Successful";

            return(StuRegReply);
        }
Example #2
0
 public List <Student> GetAllStudents()
 {
     return(StudentRegistration.GetInstance().GetAllStudents());
 }