Esempio n. 1
0
 public ActionResult New()
 {
     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"));
 }