public static void UpdateConfigProperty(Type type, object config, int userId, int taskId)
        {
            List <string> propList = GetPropertyNameWithValueInDB(type);

            foreach (string p in propList)
            {
                TaskConfigManager.UpdateConfig(userId, taskId, p, GetPropertyValue(type, p, config), RunTimeContext.Context.DatabaseContext);
            }
        }