Esempio n. 1
0
        public bool AddNewBadge(badge badges)
        {
            int startingCount = _doorAccess.Count;

            _doorAccess.Add(badges.BadgeID, badges.DoorAccess);
            bool success = startingCount < _doorAccess.Count;

            return(success);
        }
Esempio n. 2
0
 public void SeedContent()
 {
     badge badgeOne = new badge(79, new List <string> {
         "door7"
     });
     badge badgeTwo = new badge(54, new List <string> {
         "door 3", "door 6"
     });
     badge badgeThree = new badge(756, new List <string> {
         "door 8", "door17"
     });
 }