// // GET: /Platform/SysAction/Edit/5 public ActionResult Edit(Guid? id) { var item = new SysAction(); if (id.HasValue) { item = _sysActionService.GetById(id.Value); } return View(item); }
public ActionResult Edit(Guid? id, SysAction collection) { if (!ModelState.IsValid) { return View(collection); } _sysActionService.Save(id, collection); _unitOfWork.Commit(); return RedirectToAction("Index"); }