public ActionResult AddNewItemType(int id) { var model = new AdminItemTypesViewModel { ItemTypes = _typeService.GetAllItemTypes(id), PartId = id }; return(View(model)); }
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)); }