public ActionResult Update(int id) { Product product = productionService.GetProduct(id); ViewData["IsUpdate"] = true; ViewData["MeasurementUnits"] = productionService.GetMeasurementUnits().ToSelectListItems(x => x.Code, x => x.Name); ViewData["SubCategories"] = productionService.GetSubCategories().ToSelectListItems(x => x.Id, x => x.Name); ViewData["Models"] = productionService.GetModels().ToSelectListItems(x => x.Id, x => x.Name); return(View("CreateOrEdit", product)); }