public ActionResult ProductDetail(long id) { var model = new CodeProduct(); var result = model.ViewDetail(id); return(View(result)); }
public ActionResult Edit(long ID) { var model = new CodeProduct(); var result = model.ViewDetail(ID); SetViewBag(result.ID); return(View(result)); }