public ActionResult Save(int?id) { var obj = new ProductVer(); if (id.HasValue) { obj = ProductVerService.Get(id.Value); } return(View(obj.IsNullThrow())); }
public ActionResult Save(ProductVer obj) { var re = ProductVerService.SaveOrUpdate(obj); return(new OpActionResult(re)); }