Exemplo n.º 1
0
        /// <summary>
        /// Internal Method to run an Action, independently from the module.
        /// </summary>
        internal static ApiCallResponse ActionRun <TEntity>(Int64 objectId, ParaObjects.Action action, ParaCredentials pc)
            where TEntity : ParaEntity
        {
            var doc = XmlGenerator.GenerateActionXml <TEntity>(action);
            var ar  = ApiCallFactory.ObjectCreateUpdate <TEntity>(pc, doc, objectId);

            return(ar);
        }