public IActionResult Edit(int id) { var model = new StockUpdateModel(); model.Load(id); return(View(model)); }
public IActionResult AddOrEdit(int id = 0) { var model = new StockUpdateModel(); if (id == 0) { return(View(model)); } else { model.Load(id); return(View(model)); } }