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