Example #1
0
        public async Task <IActionResult> DescriptionGroups()
        {
            var descGroups = (await _shopManager.GetAllDescriptionGroupsWithProductCountAsync())
                             .Select(x => (
                                         _mapper.Map <DescriptionGroupDto>(x.Item1),
                                         x.Item2));

            return(View(descGroups));
        }