public ActionResult Parts(int id) { var model = new AdminPartsViewModel { Parts = _partService.GetAllParts(id), ProductId = id, ProductName = _productService.GetProductById(id).Name }; return(View(model)); }
public ActionResult AddNewPart(int id) { var model = new AdminPartsViewModel { Parts = _partService.GetAllParts(id), /*CodeProd = _productService.GetProductById(id).Name[0].ToString(),*/ ProductId = id }; return(View(model)); }