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 IList <Category> GetAllCategories() { return(BooksInformationDao.GetAllCategories()); }
public BookType GetBookTypeById(long bookTypeId) { return(BooksInformationDao.GetBookTypeById(bookTypeId)); }
public IEnumerable <BookType> GetAllBooks() { bookTypeCache = BooksInformationDao.GetAllBooks(); return(bookTypeCache); }
public IEnumerable <BookType> GetBooksByCategoryId(long categoryId) { return(BooksInformationDao.GetBooksByCategoryId(categoryId)); }