コード例 #1
0
        public bool AddQuantity(long bookTypeId, int quantity)
        {
            BookType bookType = BooksInformationDao.GetBookTypeById(bookTypeId);

            if (bookType == null)
            {
                return(false);
            }
            else
            {
                bookType.QuantityMap.Quantity += quantity;
                StorehouseManagementDao.UpdateQuantity(bookType);
                return(true);
            }
        }
コード例 #2
0
 public BookType GetBookTypeById(long bookTypeId)
 {
     return(BooksInformationDao.GetBookTypeById(bookTypeId));
 }