Refactor setProperty method

SetProperty is a method we should use more, and use consistently in the
codebase, this commit makes it consistently used from the utility
namespace.

Tested: Refactor.  Code compiles.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I5939317d23483e16bd98a8298f53e75604ef374d
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index b27a790..30ba4bc 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -750,7 +750,9 @@
             objectPath = "/xyz/openbmc_project/state/chassis0";
         }
 
-        crow::connections::systemBus->async_method_call(
+        sdbusplus::asio::setProperty(
+            *crow::connections::systemBus, processName, objectPath,
+            interfaceName, destProperty, propertyValue,
             [asyncResp](const boost::system::error_code& ec2,
                         sdbusplus::message_t& sdbusErrMsg) {
             // Use "Set" method to set the property value.
@@ -762,10 +764,7 @@
             }
 
             messages::success(asyncResp->res);
-            },
-            processName, objectPath, "org.freedesktop.DBus.Properties", "Set",
-            interfaceName, destProperty,
-            dbus::utility::DbusVariantType{propertyValue});
+            });
         });
 }