public IEnumerable <Seller> GetSellersForProduct(string productTitle, bool fullMatch = true) { var productSellerIds = _productProvider.GetByTitle(productTitle, fullMatch).Select(p => p.Seller.Id); return(_sellerProvider.GetById(productSellerIds)); }
public IEnumerable <Product> GetProducts([FromQuery] string searchVal, [FromQuery] bool fullMatch = false) { return(_productProvider.GetByTitle(searchVal, fullMatch, StringComparison.OrdinalIgnoreCase)); }