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