public SchoolGroup GetByName(string name) { try { SchoolGroup sc = _schoolClasses.Single(x => x.Name.Equals(name)); return(sc); } catch (System.InvalidOperationException) { return(null); } }
public bool Remove(string name) { SchoolGroup sc = GetByName(name); return(_schoolClasses.Remove(sc)); }
public bool Add(SchoolGroup sc) { return(_schoolClasses.Add(sc)); }