public void RefreshDepartment(IList <Department> listDepartment) { WriteOperations.DeleteAll(connection, GetAllDepartment(), true); WriteOperations.InsertOrReplaceAllWithChildren(connection, listDepartment, true); }