示例#1
0
        public static StudLogin SearchLoginBL(int StudentID, string Password)
        {
            StudLogin studLogin = null;

            try
            {
                AdmissionDAL admDAL = new AdmissionDAL();
                studLogin = admDAL.SearchLoginDAL(StudentID, Password);
            }
            catch (AdmissionException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(studLogin);
        }
示例#2
0
        public static List <Course> GetCourse()
        {
            List <Course> courseList = null;

            try
            {
                AdmissionDAL admDal = new AdmissionDAL();
                courseList = admDal.GetCourseDAL();
            }
            catch (AdmissionException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(courseList);
        }
示例#3
0
        public static List <Institute> GetInstitute()
        {
            List <Institute> instituteList = null;

            try
            {
                AdmissionDAL admDal = new AdmissionDAL();
                instituteList = admDal.GetInstituteDAL();
            }
            catch (AdmissionException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(instituteList);
        }
示例#4
0
        public static bool AddStudent(Student student, Course course, Institute institute, Admission admission)
        {
            bool studentAdded = false;

            try
            {
                AdmissionDAL admDAL = new AdmissionDAL();
                studentAdded = admDAL.AddStudent(student, course, institute, admission);
            }
            catch (AdmissionException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(studentAdded);
        }