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