public bool Borrow(int bookId) { bool isValid = bookId >= 0 && account.AccountLevel >= AccountLevelEnums.Patron; if (!isValid) { return(false); } BorrowMehod.Borrow(new Borrow(bookId, account.ID, DateTime.Today)); return(true); }
public bool Borrow(int bookId, int AccountId) { bool isValid = bookId >= 0 && AccountId >= 0 && account.AccountLevel >= AccountLevelEnums.Librarian; if (!isValid) { return(false); } BorrowMehod.Borrow(new Borrow(bookId, AccountId, DateTime.Today)); return(true); }