public void CreateBadge(int badgeNum, List <string> list) { Badge newBadge = new Badge(badgeNum, list); _badgeDictionary.Add(newBadge.BadgeID, newBadge.AccessList); }
//CRUD //Create New Badge public void AddBadgesToTheList(Badge badge) { //count is the int part of it _badgeList.Add(badge.Id, badge.Doors); }
public void DeleteAllDoors(int badgeID) { Badge badge = _badges[badgeID]; badge.doorNames = new List <string>(); }
public void Add(Badge badge) { _badges.Add(badge.badgeID, badge); }
public void Add(int badgeID, Badge badge) { _badges.Add(badgeID, badge); }
public bool AddNewBadge(Badge badge) { _directory[badge.BadgeID] = badge.Doors; return(_directory.ContainsKey(badge.BadgeID)); }