public List <clsStudent> GetHallTicketStudentsByExamIDUID(string pExamID, string pUID) { clsExamForm objExamForm = new clsExamForm(); List <clsStudent> objStudentsList = new List <clsStudent>(); DataTable dt = new DataTable(); try { dt = objExamForm.getStudentHallTicketsByExamIDUID(pExamID, pUID); foreach (DataRow dr in dt.Rows) { objStudentsList.Add(new clsStudent { UID = dr["uid"].ToString(), StudentFullName = dr["Name"].ToString(), MobileNo = dr["mobileno"].ToString(), EmailID = dr["emailid"].ToString() }); } } catch (Exception er) { objStudentsList.Add(new clsStudent { ErrorMessage = er.Message.ToString() }); } return(objStudentsList); }
public List <clsExamCourseSchedule> GetHallTicketSelectedCoursesByExamIDUID(string pExamID, string pUID) { clsExamForm objExamForm = new clsExamForm(); List <clsExamCourseSchedule> objCourses = new List <clsExamCourseSchedule>(); DataTable dt = new DataTable(); try { dt = objExamForm.getStudentHallTicketsByExamIDUID(pExamID, pUID); foreach (DataRow dr in dt.Rows) { objCourses.Add(new clsExamCourseSchedule { CourseCode = dr["CourseCode"].ToString(), CourseTitle = dr["CourseTitle"].ToString(), ExamCourseScheduleID = int.Parse(dr["ExamCourseScheduleID"].ToString()) }); } } catch (Exception er) { objCourses.Add(new clsExamCourseSchedule { ErrorMessage = er.Message.ToString() }); } return(objCourses); }
public clsMessage UpdateExamFormBulk(clsExamForm pExamForm, List <clsCourseScheme> pCourseList, string action = "Insert") { clsMessage rm = new clsMessage(); rm = pExamForm.updateExamForm(pCourseList, action); return(rm); }