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); } }
public BookType GetBookTypeById(long bookTypeId) { return(BooksInformationDao.GetBookTypeById(bookTypeId)); }