/// <summary> /// 编辑部门 /// </summary> /// <param name="departid">部门ID</param> /// <param name="name">名称</param> /// <param name="description">描述</param> /// <param name="operateid">操作人</param> /// <param name="operateip">操作IP</param> /// <returns></returns> public bool UpdateDepartment(string departid, string name, string description, string operateid, string operateip, string agentid) { var dal = new OrganizationDAL(); bool bl = dal.UpdateDepartment(departid, name, description, agentid); if (bl) { //处理缓存 var model = GetDepartments(agentid).Where(d => d.DepartID == departid).FirstOrDefault(); model.Name = name; model.Description = description; } return bl; }
/// <summary> /// 编辑部门 /// </summary> /// <param name="departid">部门ID</param> /// <param name="name">名称</param> /// <param name="description">描述</param> /// <param name="operateid">操作人</param> /// <param name="operateip">操作IP</param> /// <returns></returns> public bool UpdateDepartment(string departid, string name, string description, string operateid, string operateip) { var dal = new OrganizationDAL(); return dal.UpdateDepartment(departid, name, description); }