public async Task <bool> SellProduct(int productId, int quantity) { var productQuantiry = await _quantityRepository.GetByProductId(productId); if (productQuantiry != null) { return(productQuantiry.Quantity >= quantity); } return(false); }