Esempio n. 1
0
        public ActionResult DepartmentSave(DepartmentSaveModel model)
        {
            model.ParentId = EncryptHelper.DesDecrypt(model.ParentId);
            ResultInfoModel result;

            if (!string.IsNullOrEmpty(model.DepartId))   //编辑·
            {
                model.DepartId = EncryptHelper.DesDecrypt(model.DepartId);
                result         = HomeBusiness.SaveDepartment(model, this.LoginUser);//todo
            }
            else //新增
            {
                result = HomeBusiness.SaveNewDepartment(model, this.LoginUser);
            }
            return(Json(result));
        }