public bool UpdateBadge(int oldBadge, BadgesPOCOs newBadgeData) { BadgesPOCOs oldBadgeData = GetBadgesByKey(oldBadge); if (oldBadgeData == null) { return(false); } else { oldBadgeData.DoorAccess = newBadgeData.DoorAccess; oldBadgeData.BadgeID = newBadgeData.BadgeID; return(true); } }
public bool AddNewBadge(BadgesPOCOs newBadge) { Count++; _badgesDict.Add(Count, newBadge); return(true); }