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); }
public List <Student> GetAllStudents() { return(StudentRegistration.GetInstance().GetAllStudents()); }