public string SaveBooks(Books books) { Books aBook = gateway.GetExistBook(books); if (aBook != null) { return("ISBN number already exists. Please enter unique ISBN number"); } bool isSaved = gateway.SaveAllBooks(books); if (isSaved) { return("Books Saved Successfully"); } else { return("Save Failed"); } }