Example #1
0
        public JsonResult Update(SysDept dept)
        {
            var old = SysDept.SingleOrDefault(dept.ID);

            old.Code     = dept.Code;
            old.Name     = dept.Name;
            old.Sort     = dept.Sort;
            old.ParentID = dept.ParentID;

            old.Update();

            return(Json(ArtDialogResponseResult.SuccessResult));
        }
Example #2
0
        public ActionResult Update(int id)
        {
            var dept = SysDept.SingleOrDefault(id);

            return(View(dept));
        }