Example #1
0
 public string DeleteBook(int id)
 {
     logger.Info("Inside DeleteBook Method");
     if (id < 0)
     {
         logger.Error(new InvalidIdException());
         return(new InvalidIdException().Message);
     }
     logger.Info("Book Deleted Successfully");
     return(bookdata.DeleteBookById(id));
 }