public int getBookQuantityCanBorrow(ReaderBLL readerBLL) { if (CertificateDAL.getCertificateByReaderId(readerBLL.Code) != null) { return(3 - CertificateDAL.getCertificateByReaderId(readerBLL.Code).Count); } return(3); }
public bool checkBookBorrowMax(ReaderBLL readerBLL) { if (CertificateDAL.getCertificateByReaderId(readerBLL.Code) != null && CertificateDAL.getCertificateByReaderId(readerBLL.Code).Count >= 3) { return(false); } return(true); }