Esempio n. 1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var showProductGroup      = _productGroupRepository.GetListGroupsPartialViewModel();
            var showProductGroupModel = _mapper.Map <List <ShowProductGroupPartialViewModel> >(showProductGroup);

            return(await Task.FromResult((IViewComponentResult)View("ShowProductGroupComponent",
                                                                    showProductGroupModel)));
        }