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