public async Task <IViewComponentResult> InvokeAsync(string search, IEnumerable <ProductDTO> products)
        {
            var _categoires = await _categoryFound.GetFoundCategoriesAsync(search);

            if (products != null)
            {
                _categoires = await _categoryFound.GetFoundOneCategoriesAsync(search, products);

                if (!String.IsNullOrEmpty(search))
                {
                    _categoires = await _categoryFound.GetFoundCategoriesAsync(search);
                }
            }
            return(View(_categoires));
        }
Ejemplo n.º 2
0
        public async Task <IViewComponentResult> InvokeAsync(string search)
        {
            var _categoires = await _categoryFound.GetFoundCategoriesAsync(search);

            return(View(_categoires));
        }