예제 #1
0
        public void CheckoutMagazine()
        {
            var checkingoutamag = true;

            while (checkingoutamag)
            {
                Console.Clear();

                Magazine magazine = GetMagFromUserChoice();

                if (magazine == null)
                {
                    checkingoutamag = false;
                }
                else
                {
                    magazine.Available = false;
                }
            }
        }
예제 #2
0
        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;
                }
            }
        }
예제 #3
0
 public void AddMagazine(Magazine magazine)
 {
     Magazines.Add(magazine);
 }