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

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