//Update: update door access public bool UpdateExistingBadge(int oldBadgeID, Badges updateBadge) { Badges oldBadge = GetBadgeByID(oldBadgeID); if (oldBadge != null) { oldBadge.DoorNames = updateBadge.DoorNames; return(true); } return(false); }
public bool AddNewRoom(int badgeID, string roomNumber) { Badges oldBadge = GetBadgeByID(badgeID); if (oldBadge != null) { oldBadge.DoorNames.Add(roomNumber); return(true); } else { return(false); } }
public bool AddBadgeToDictionary(Badges badge) { _badgesDictionary.Add(badge.BadgeID, badge); return(true); }