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