Exemple #1
0
        public async Task <SearchResult <AttributeValueViewModel> > Search(string tenantId, string productAttributeId,
                                                                           string languageId, string keyword, bool?isActive, int page, int pageSize)
        {
            var items = await _attributeValueRepository.Search(tenantId, languageId, keyword, productAttributeId, isActive, page,
                                                               pageSize, out var totalRows);

            return(new SearchResult <AttributeValueViewModel>
            {
                TotalRows = totalRows,
                Items = items
            });
        }