private bool DepartmentIsExists(String departmentCode) { bool isExistInCurrentData = (FindCurrentDataByDepartmentCode(departmentCode)).Length > 0; bool isExistOnDatabase = SqlRequestFunction.DepartmentIsExist(departmentCode); return(isExistInCurrentData || isExistOnDatabase); }