public ActionResult AddNewItemType(int id)
        {
            var model = new AdminItemTypesViewModel {
                ItemTypes = _typeService.GetAllItemTypes(id), PartId = id
            };

            return(View(model));
        }
示例#2
0
        public ActionResult ItemTypes(int id)
        {
            var model = new AdminItemTypesViewModel
            {
                ItemTypes   = _typeService.GetAllItemTypes(id),
                PartId      = id,
                PartName    = _partService.GetPartById(id).Name,
                ProductName = _productService.GetProductById(_partService.GetPartById(id).ProductId).Name,
                ProductId   = _partService.GetPartById(id).ProductId
            };

            return(View(model));
        }