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(); }
public virtual void RemoveEducation(int Id) { foreach (Education ED in Educations) { if (ED.Id == Id) { Educations.Remove(ED); break; } } }
private void RemoveEducationMethod(Models.UserPageModel.Education education) { Educations.Remove(education); }