Beispiel #1
0
        private void BorrowBookMethod()
        {
            var book = _bookDataService.BorrowBook(Rfid, Barcode);

            if (book != null)
            {
                Barcode = string.Empty;
                Rfid    = string.Empty;
                Result  = $"{book.Title} is now borrowed";
            }
            else
            {
                Result = "The book or the user could not be found";
            }
        }