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

            _sysAreaService.Save(id, collection);

            _unitOfWork.Commit();

            return RedirectToAction("Index");
        }