//allows you to remove a rented item from the collection public bool Remove(RentedItem item) { for (int i = 0; i < _rentItemList.Count; i++) { if (_rentItemList[i] == item) { _rentItemList.Remove(item); return(true); } } return(false); }
//Allow to add directly an item and a user as a Rented Item. public void Add(AbstractItem absItem, User user) { RentedItem _tmp = new RentedItem(absItem, user); _rentItemList.Add(_tmp); }