/// <summary> /// 保存部门表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="departmentEntity">部门实体</param> /// <returns></returns> public void SaveForm(string keyValue, AppDepartmentEntity departmentEntity) { try { service.SaveForm(keyValue, departmentEntity); CacheFactory.Cache().RemoveCache(cacheKey); } catch (Exception) { throw; } }
public ActionResult SaveForm(string keyValue, AppDepartmentEntity departmentEntity) { departmentBLL.SaveForm(keyValue, departmentEntity); return(Success("操作成功。")); }