Пример #1
0
        //update doors on an existing badge.

        public void UpdateDoors(int BadgeID, Badge newBadge)
        {
            _badgeDictionary[BadgeID] = newBadge;
        }
        public Badge GetBadgeFromList(int badgeID)
        {
            Badge badge = new Badge(badgeID, _badgeRepo[badgeID]);

            return(badge);
        }
Пример #3
0
        //create a new badge

        public void CreateNewBadge(int BadgeID, Badge newBadge)
        {
            _badgeDictionary.Add(BadgeID, newBadge);
        }
 public void AddBadgetoList(Badge badge)
 {
     _badgeRepo.Add(badge.BadgeID, badge.DoorsAccessible);
 }