Esempio n. 1
0
        // GET: Admin/ProductGroups/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var productGroup       = _productGroupRepository.GetEntityById(id.Value);
            var productGroupsModel = _mapper.Map <ProductGroupViewModel>(productGroup);

            if (productGroup == null)
            {
                return(NotFound());
            }

            return(View(productGroupsModel));
        }