public bool AddEnrollment(Enrollment v)
 {
     db.Enrollments.Add(v);
     if (!Save())
     {
         return false;
     }
     return true;
 }
 public bool RemoveEnrollment(Enrollment v)
 {
     if (!db.Enrollments.Local.Contains(v))
     {
         db.Enrollments.Attach(v);
     }
     db.Enrollments.Remove(v);
     if (!Save())
     {
         return false;
     }
     return true;
 }
 public bool UpdateEnrollment(Enrollment v)
 {
     if (!db.Enrollments.Local.Contains(v))
     {
         db.Enrollments.Attach(v);
     }
     db.Entry<Enrollment>(v).State = EntityState.Modified;
     if (!Save())
     {
         return false;
     }
     return true;
 }