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