public DataSet GetClassInfo(int classID, int gradeID) { DataSet classInfo; using (ClassesDataAccess classDataAccess = new ClassesDataAccess()) { classInfo = classDataAccess.GetClassInfo(classID, gradeID); } return(classInfo); }
public DataSet GetClassInfoList() { DataSet classInfoList; using (ClassesDataAccess classDataAccess = new ClassesDataAccess()) { classInfoList = classDataAccess.GetClassInfoList(); } return(classInfoList); }
public int DeleteClassInfo(int classID, int gradeID) { int rowsAffected = 0; using (ClassesDataAccess classesDataAccess = new ClassesDataAccess()) { rowsAffected = classesDataAccess.DeleteClassInfo(classID, gradeID); } return(rowsAffected); }
public int UpdateClassInfo(Classes classes) { int rowsAffected = 0; using (ClassesDataAccess classDataAccess = new ClassesDataAccess()) { rowsAffected = classDataAccess.UpdateClassInfo(classes); } return(rowsAffected); }
public int InsertClassInfo(Classes classes, string gradeName) { int rowsAffected = 0; using (ClassesDataAccess classDataAccess = new ClassesDataAccess()) { rowsAffected = classDataAccess.InsertClassInfo(classes, gradeName); } return(rowsAffected); }
public DataTable GetGetClassAndGrade() { DataTable dt = null; try { dt = new ClassesDataAccess().GetClassAndGrade(); } catch (Exception ex) { Util.WriteLog(ex.Message, Util.EXCEPTION_LOG_TITLE); } return(dt); }