public XmlResult QualifiedStudentsinXML()
        {
            List <StudentDecisionQualification> studentsQualified = studentDecisionBusinessAccess.DisplaySuccessfulStudents();

            List <StudentInfo> studentQualifiedInfo = new List <StudentInfo>();

            foreach (StudentDecisionQualification student in studentsQualified)
            {
                studentQualifiedInfo.Add(studentInfoBusinessAccess.DisplayStudentInfoByIdFromDatabase(student.studentId));
            }
            return(new XmlResult(studentQualifiedInfo));
        }
        public ActionResult ApplicantInfo()
        {
            try
            {
                StudentInfo student = new StudentInfo();
                if (Session["studentId"] == null)
                {
                    return(View("ApplicantInfo", student));
                }

                student = studentInfoBusinessAccess.DisplayStudentInfoByIdFromDatabase((int)Session["studentId"]);
                return(View("ApplicantInfo", student));
            }
            catch (Exception exception)
            {
                return(View("Error"));
            }
        }