Exemple #1
0
 static void DeleteBookById()
 {
     try
     {
         BusinessLayer bll = new BusinessLayer();
         Console.Write("Enter the bookID to delete the book detail : ");
         int bookID = int.Parse(Console.ReadLine());
         bll.DeleteBook(bookID);
         Console.WriteLine("Record deleted successfully....");
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }