public void AddNewBook() { Console.WriteLine("Enter Book Name, Category and Quantity"); string name = Console.ReadLine(); string category = Console.ReadLine(); int qty = Int32.Parse(Console.ReadLine()); Guid id = bookDomainoperation.GenerateBookID(); Book newbook = new Book { BookID = id, BookName = name, Category = category, Qty = qty }; bookrepo.AddBooktoRepo(newbook); }