Example #1
0
		public DataSet GetGradeNumber()
		{
			DataSet dsGradeNumber = null;
			using (GradesDataAccess gradesDataAccess = new GradesDataAccess())
			{
				dsGradeNumber = gradesDataAccess.GetGradeNumber();
			}

			return dsGradeNumber;
		}
Example #2
0
		public DataSet GetClassNumber(string gradeName)
		{
			DataSet dsClassNumber = null;
			
			using (GradesDataAccess gradesDataAccess = new GradesDataAccess())
			{
				dsClassNumber = gradesDataAccess.GetClassNumber(gradeName);
			}

			return dsClassNumber;
		}
Example #3
0
		public DataSet GetGradeInfo(int gradeID)
		{
			DataSet gradeInfo;

			using (GradesDataAccess gradesDataAccess = new GradesDataAccess())
			{
				gradeInfo = gradesDataAccess.GetGradeInfo(gradeID);
			}
			
			return gradeInfo;
		}
Example #4
0
		public DataSet GetGradeInfoList(int index)
		{
			DataSet gradeInfoList;

			using (GradesDataAccess gradesDataAccess = new GradesDataAccess())
			{
				gradeInfoList = gradesDataAccess.GetGradeInfoList(index);
			}
			
			return gradeInfoList;
		}
Example #5
0
		public int DeleteGradeInfo(int gradeID)
		{
			int rowsAffected = 0;

			using(GradesDataAccess gradesDataAccess = new GradesDataAccess())
			{
				rowsAffected = gradesDataAccess.DeleteGradeInfo(gradeID);
			}

			return rowsAffected;
		}
Example #6
0
		public int UpdateGradeInfo(Grade grade)
		{
			int rowsAffected = 0;

			using(GradesDataAccess gradesDataAccess = new GradesDataAccess())
			{
				rowsAffected = gradesDataAccess.UpdateGradeInfo(grade);
			}

			return rowsAffected;
		}