コード例 #1
0
        public JsonResult AddStudent(Student student)
        {
            Console.WriteLine("In addStudent");
            StudentRegistrationReply stdregreply = new StudentRegistrationReply(student);

            StudentRegistration.getInstance().Add(student);
            stdregreply.RegistrationStatus = "Successful";
            return(Json(stdregreply));
        }
コード例 #2
0
        public StudentRegistrationReply RegisterStudent(Student student)
        {
            // TODO: pass in a student to the refgistration reply
            Console.WriteLine("In registerStudent");
            StudentRegistrationReply stdregreply = new StudentRegistrationReply(student);

            StudentRegistration.getInstance().Add(student);
            stdregreply.RegistrationStatus = "Successful";
            return(stdregreply);
        }
コード例 #3
0
        public JsonResult AddStudent(Student studentregd)
        {
            Console.WriteLine("In registerStudent");
            StudentRegistrationReply stdregreply = new StudentRegistrationReply();

            StudentRegistration.getInstance().Add(studentregd);
            stdregreply.Name = studentregd.Name;
            stdregreply.Age  = studentregd.Age;
            stdregreply.RegistrationNumber = studentregd.RegistrationNumber;
            stdregreply.RegistrationStatus = "Successful";
            return(Json(stdregreply));
        }
コード例 #4
0
        public StudentRegistrationReply RegisterStudent(Student studentRedg)
        {
            Console.WriteLine("In registerStudent");
            StudentRegistrationReply stdRedgReply = new StudentRegistrationReply();

            StudentRegistration.getInstance().Add(studentRedg);
            stdRedgReply.Name = studentRedg.Name;
            stdRedgReply.Age  = studentRedg.Age;
            stdRedgReply.RegistrationNumber = studentRedg.RegistrationNumber;
            stdRedgReply.RegistrationStatus = "Successful";

            return(stdRedgReply);
        }
コード例 #5
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);
        }