Пример #1
0
 public List <JoinBorrow> BorrowHistory()
 {
     if (account.AccountLevel < AccountLevelEnums.Librarian)
     {
         return(new List <JoinBorrow>());
     }
     return(BorrowMehod.Read());
 }
Пример #2
0
        public JoinBorrow BorrowHistory(int id)
        {
            bool isValid = id > 0 && account.AccountLevel >= AccountLevelEnums.Librarian;

            if (!isValid)
            {
                throw new NotImplementedException();
            }
            return(BorrowMehod.Read(id));
        }