/// <summary>
 /// Checks to see if a student's gpa state has changed.
 /// </summary>
 /// <param name="student"></param>
 public override void stateChangeCheck(Student student)
 {
     if (student.GradePointAverage < LowerLimit)
     {
         student.GPAStateId = RegularState.getInstance().GPAStateId;
         db.SaveChanges();
     }
 }
 /// <summary>
 /// Retrieves an instance of the RegularState class.
 /// </summary>
 /// <returns>Instance of RegularState.</returns>
 public static RegularState getInstance()
 {
     if (regularState == null)
     {
         regularState = db.RegularStates.SingleOrDefault();
         if (regularState == null)
         {
             regularState = new RegularState();
             db.RegularStates.Add(regularState);
             db.SaveChanges();
         }
     }
     return(regularState);
 }