public static List <StudentListBySubject> GetStudentList_BySubject(int SubjectID, int SectionID)
        {
            List <StudentListBySubject> StudentListByFac = new List <StudentListBySubject>();
            DataTable StudentListByFacTable = StudentDataAccess.GetInstance.GetStudentList_BySubject(SubjectID, SectionID);

            foreach (DataRow dr in StudentListByFacTable.Rows)
            {
                StudentListBySubject TheStudent = StDataRowToObject(dr);
                StudentListByFac.Add(TheStudent);
            }
            return(StudentListByFac);
        }
        public static StudentListBySubject StDataRowToObject(DataRow dr)
        {
            StudentListBySubject TheStudent = new StudentListBySubject();

            TheStudent.StudentID   = int.Parse(dr["StudentId"].ToString());
            TheStudent.StudentCode = dr["StudentCode"].ToString();
            TheStudent.StudentName = dr["StudentName"].ToString();
            TheStudent.SubjectID   = int.Parse(dr["SubjectID"].ToString());
            TheStudent.ROLLNo      = dr["ROLLNo"].ToString();
            TheStudent.QualID      = int.Parse(dr["QualID"].ToString());

            return(TheStudent);
        }