public IActionResult Index() { PalletConfigViewModel palletConfig = new PalletConfigViewModel(); palletConfig.EventHandler(); return(View(palletConfig)); }
public IActionResult Index(PalletConfigViewModel palletConfig) { if (ModelState.IsValid) { palletConfig.EventHandler(); ModelState.Clear(); } return(View(palletConfig)); }