/// <summary> /// Add book in file. /// </summary> /// <param name="addBook">Book</param> public void AddBook(Book addBook) { try { ServiceBookLogger.Info("Start of block processing TYR in which adding books"); ListService.AddBook(addBook); ServiceBookLogger.Info("End of block processing TYR in which adding books"); } catch (AddBookException ex) { Console.WriteLine(ex.Message); ServiceBookLogger.Info(ex.Message); ServiceBookLogger.Error(ex.StackTrace); } }