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

            return(_schoolClasses.Remove(sc));
        }
Beispiel #3
0
 public bool Add(SchoolGroup sc)
 {
     return(_schoolClasses.Add(sc));
 }