Ejemplo n.º 1
0
 public string InsertBook(Book aBook)
 {
     if (aBook.ISBN.Length == 13)
     {
         int row = bookGateway.AddBook(aBook);
         if (row == 1)
         {
             return("Book saved Successfully.");
         }
         else
         {
             return("Can not save the book.");
         }
     }
     else
     {
         return("ISBN should be  13 character.");
     }
 }