public void ReturnBook() { _screenHelper.Reset(); var id = _screenHelper.GetBookId(); var book = _bookRepository.ReturnABook(id); if (book == null) { Console.WriteLine(Texts.NoBook); } _menuHelper.NavigateToMainMenu(); }
public void PerformBorrowingProcess() { _screenHelper.Reset(); var id = _screenHelper.GetBookId(); var reader = _screenHelper.GetNewReader(); var daysToBorrow = _screenHelper.GetBorrowDays(); var book = BorrowSingleBook(id, reader, daysToBorrow); _screenHelper.PrintBookBorrowedMessage(book, reader); _menuHelper.NavigateToMainMenu(); }