/// <summary> /// Checks the book out, assigns borrower /// </summary> /// <param name="borrower">Patron borrowing the media</param> public bool CheckOut(Patron borrower, DateTime dateChecked) { //call checkout from patron, which needs to check age for eligibility //has patron already checked maximum number of items? //is book already checked out? if (CheckedOut == false && borrower._currentChecked.Count <= borrower._maxCheckouts) { CheckedOut = true; borrower.addMedia(this, this.ID); dateCheckedOut = dateChecked; Borrower = borrower; return true; } else { return false; } }