示例#1
0
 public void AddGroupOfInterest(PLMPackEntities db, Group gp)
 {
     if (!HasGroupOfInterest(gp))
     {
         GroupsOfInterest.Add(gp);
         db.SaveChanges();
     }
 }
示例#2
0
 public void RemoveGroupOfInterest(PLMPackEntities db, Group gp)
 {
     if (HasGroupOfInterest(gp))
     {
         GroupsOfInterest.Remove(gp);
         db.SaveChanges();
     }
 }
示例#3
0
 public bool HasGroupOfInterest(Group gp)
 {
     return(GroupsOfInterest.Contains(gp));
 }