public static int GetLibraryID(List <Library> librarys) { int libraryID = -1; DisplayAllTheBooks(librarys); DisplayMessage(""); DisplayPromptMessage("Enter the library ID: "); libraryID = ConsoleUtilCenter.ValidateIntegerResponse("Please enter the library ID: ", Console.ReadLine()); return(libraryID); }
public static Library AddABookTitle() { Library library = new Library(); DisplayReset(); DisplayMessage(""); Console.WriteLine(ConsoleUtilCenter.Center("Add A BookTitle", WINDOW_WIDTH)); DisplayMessage(""); DisplayPromptMessage("Enter the library ID: "); library.ID = ConsoleUtilCenter.ValidateIntegerResponse("Please enter the library ID: ", Console.ReadLine()); DisplayMessage(""); DisplayPromptMessage("Enter the BookTitle: "); library.BookTitle = Console.ReadLine(); DisplayMessage(""); DisplayPromptMessage("Enter the Author: "); library.Author = Console.ReadLine(); DisplayMessage(""); DisplayPromptMessage("Enter the Genre: "); library.Genre = Console.ReadLine(); DisplayMessage(""); DisplayPromptMessage("Enter the Series: "); library.Series = Console.ReadLine(); DisplayMessage(""); DisplayPromptMessage("Enter the book ISBN: "); library.ISBN = Console.ReadLine(); DisplayMessage(""); return(library); }