public string SaveBook(Book book) { bool isMemberId = bookGateway.CheckBookName(book); if (isMemberId == false) { int rowAffected = bookGateway.SaveBook(book); if (rowAffected > 0) { return("Book submit Successfully."); } else { return("Book submit Failed, Try Again."); } } else { return("This Name Already Used, please try Another Author Name"); } }