Пример #1
0
 //
 // 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);
 }
Пример #2
0
        public ActionResult Edit(Guid? id, SysAction collection)
        {
            if (!ModelState.IsValid)
            {
                return View(collection);
            }

            _sysActionService.Save(id, collection);

            _unitOfWork.Commit();

            return RedirectToAction("Index");
        }