public void UpdateBadgeDoorList(Badge, badge, Door oldList)
 {
 }
 public void LoadNewKey(Badge card)
 {
     keys.Add(card.BadgeID, card.DoorAccess);
 }
 public void CreateNewBadge(Badge badge, Door door)
 {
     _badgeDirectory.Add(badge, door);
 }
 // Create
 public void CreateBadge(Badge badge)
 {
     _badgeDictionary.Add(badge.BadgeID, badge.ListOfDoors);
 }
示例#5
0
        //Delete

        public bool DeleteBadge(Badge badge)
        {
            bool deleteBadge = _repo.Remove(badge.BadgeID);

            return(deleteBadge);
        }
示例#6
0
 private void DisplayBadge(Badge badge)
 {
     Console.WriteLine($"Badge ID: {badge.ID}");
     Console.WriteLine($"Accessible Doors:");
     DisplayDoors(badge);
 }
 //Create
 public void AddToAccessList(Badge badge)
 {
     _accessList.Add(badge.BadgeID, badge.Doors);
 }
示例#8
0
 //C
 public void AddNewBadge(Badge badge)
 {
     badgeDictionary.Add(badge.ID, badge.DoorNames);
 }