public void CheckoutMagazine() { var checkingoutamag = true; while (checkingoutamag) { Console.Clear(); Magazine magazine = GetMagFromUserChoice(); if (magazine == null) { checkingoutamag = false; } else { magazine.Available = false; } } }
public void ReturnMag() { var returningamag = true; while (returningamag) { Console.Clear(); // System.Console.WriteLine($"You have {Books.Count} books checked out."); // System.Console.WriteLine("What book would you like to return?"); Magazine magazine = GetMagFromUserChoice(); if (magazine == null) { returningamag = false; } else { magazine.Available = true; } } }
public void AddMagazine(Magazine magazine) { Magazines.Add(magazine); }