private void AddBooks() { Console.Out.WriteLine("Enter book name"); PrintInputCharacter(); string bookname = Console.In.ReadLine(); Console.Out.WriteLine("Enter book details"); PrintInputCharacter(); string detail = Console.In.ReadLine(); Console.Out.WriteLine("Enter book amount"); PrintInputCharacter(); uint amount = UInt32.Parse(Console.In.ReadLine()); if (controller.CheckBookNameExists(bookname)) { Console.Out.WriteLine("Bookname exists, please change a new bookname"); } else { controller.AddBook(bookname, detail, amount); Console.Out.WriteLine("Add book success"); } }