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