public string Update(Department entity, string oldName) { try { if (entity.Id < 1) { return("Lütfen Geçerli Bir Departman Seçiniz"); } controlText = IsDepartmentComplete(entity); if (controlText != "") { return(controlText); } if (string.IsNullOrEmpty(oldName)) { return("Departman Bilgilerine Ulaşılamadı"); } return(departmentDal.Update(entity, oldName)); } catch (Exception ex) { return(ex.Message); } }
/// <summary> /// 更新部门数据 /// </summary> /// <param name="departmentList">部门实体对象</param> /// <param name="tran">中间事务对象</param> public static void UpdateDepartment(IList <Department> departmentList, ICTransaction tran) { DepartmentDal.Update(departmentList, tran); }
/// <summary> /// 更新部门数据 /// </summary> /// <param name="departmentList">部门实体对象</param> public static void UpdateDepartment(IList <Department> departmentList) { DepartmentDal.Update(departmentList); }
/// <summary> /// 更新部门数据 /// </summary> /// <param name="department">部门实体对象</param> /// <param name="tran">中间事务对象</param> public static void UpdateDepartment(Department department, ICTransaction tran) { DepartmentDal.Update(department, tran); }
/// <summary> /// 更新部门数据 /// </summary> /// <param name="department">部门实体对象</param> public static void UpdateDepartment(Department department) { DepartmentDal.Update(department); }