コード例 #1
0
        public IEnumerable <Seller> GetSellersForProduct(string productTitle, bool fullMatch = true)
        {
            var productSellerIds = _productProvider.GetByTitle(productTitle, fullMatch).Select(p => p.Seller.Id);

            return(_sellerProvider.GetById(productSellerIds));
        }
コード例 #2
0
 public IEnumerable <Product> GetProducts([FromQuery] string searchVal, [FromQuery] bool fullMatch = false)
 {
     return(_productProvider.GetByTitle(searchVal, fullMatch, StringComparison.OrdinalIgnoreCase));
 }