public int AvailableQuantity(int productId) { return(_purchaseRepository.AvailableQuantity(productId)); }