public ActiveStudies getActiveStudiesObject(ActiveStudies element) { if (ActiveStudies.Contains(element)) { foreach (ActiveStudies actstu in ActiveStudies) { if (element.Equals(actstu)) { return(actstu); } } } return(null); }
public ActiveStudies getActiveStudies(ActiveStudies objeec) { if (ActiveStudies.Contains(objeec)) { foreach (ActiveStudies activeStudy in ActiveStudies) { if (objeec.Equals(activeStudy)) { return(activeStudy); } } //return null; } return(null); }