Пример #1
0
        public void Remove(Model.Model m)
        {
            m.Delete();
            switch (m.Table)
            {
            case "Educations":
                Educations.Remove((Education)m);
                break;

            case "Students":
                Students.Remove((Student)m);
                break;

            case "Exams":
                Exams.Remove((Exam)m);
                break;

            case "Attempts":
                Attempts.Remove((Attempt)m);
                break;
            }

            dao.UpdateData();
            m.AfterDelete();
        }
Пример #2
0
 public virtual void RemoveEducation(int Id)
 {
     foreach (Education ED in Educations)
     {
         if (ED.Id == Id)
         {
             Educations.Remove(ED);
             break;
         }
     }
 }
Пример #3
0
 private void RemoveEducationMethod(Models.UserPageModel.Education education)
 {
     Educations.Remove(education);
 }