protected override void DataDelete() { if (IsDeleted) { TrainService.DeleteCurriculaInfo(this); } if (CurriculaInfos.Contains(this)) { CurriculaInfos.Remove(this); } Dispose(); }
/// <summary> /// Adds a CurriculaInfo to the collection and saves the Curricula. /// </summary> /// <param name="crl">The comment to add to the post.</param> public void RemoveCurriculaInfo(CurriculaInfo crl) { CurriculaInfos.Remove(crl); CurriculaInfo.CurriculaInfos.Remove(crl); DataUpdate(); }