///<summary>
        /// Method Invocation of wrapper classes
        ///<summary>
        protected static FR_L3CM_GAMD_1710 Invoke(DbConnection Connection, DbTransaction Transaction, string ConnectionString, P_L3CM_GAMD_1710 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            bool cleanupConnection  = Connection == null;
            bool cleanupTransaction = Transaction == null;

            FR_L3CM_GAMD_1710 functionReturn = new FR_L3CM_GAMD_1710();

            try
            {
                if (cleanupConnection == true)
                {
                    Connection = CSV2Core_MySQL.Support.DBSQLSupport.CreateConnection(ConnectionString);
                    Connection.Open();
                }
                if (cleanupTransaction == true)
                {
                    Transaction = Connection.BeginTransaction();
                }

                functionReturn = Execute(Connection, Transaction, Parameter, securityTicket);


                #region Cleanup Connection/Transaction
                //Commit the transaction
                if (cleanupTransaction == true)
                {
                    Transaction.Commit();
                }
                //Close the connection
                if (cleanupConnection == true)
                {
                    Connection.Close();
                }
                #endregion
            }
            catch (Exception ex)
            {
                try
                {
                    if (cleanupTransaction == true && Transaction != null)
                    {
                        Transaction.Rollback();
                    }
                }
                catch { }

                try
                {
                    if (cleanupConnection == true && Connection != null)
                    {
                        Connection.Close();
                    }
                }
                catch { }

                throw ex;
            }
            return(functionReturn);
        }
        protected static FR_L3CM_GAMD_1710 Execute(DbConnection Connection, DbTransaction Transaction, P_L3CM_GAMD_1710 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            #region UserCode
            var returnValue = new FR_L3CM_GAMD_1710();
            returnValue.Result = new L3CM_GAMD_1710();

            #region Get Projects

            P_L3PR_GPfAaR_1344 param0 = new P_L3PR_GPfAaR_1344();
            param0.IsArchived      = false;
            param0.RightPackIDList = Parameter.RightPackIDList;

            FR_L3PR_GPfAaR_1344_Array result1  = cls_Get_Projects_for_AccountID_and_RightPackIDList.Invoke(Connection, Transaction, param0, securityTicket);
            L3PR_GPfAaR_1344[]        projects = result1.Result;

            #endregion

            if (projects.Count() == 0)
            {
                return(returnValue);
            }

            #region DeveloperTasks

            P_L3DT_GDTSVfPL_1458 param1 = new P_L3DT_GDTSVfPL_1458();
            param1.ProjectIDList             = projects.Select(i => i.TMS_PRO_ProjectID).ToArray();
            param1.ShowOnly_CompletedTasks   = false;
            param1.ShowOnly_IncompleteInfo   = false;
            param1.Is_ArchivedTasks_Included = false;

            var dtasks = cls_Get_DeveloperTasks_SimpleView_for_ProjectIDList.Invoke(Connection, Transaction, param1, securityTicket).Result;

            #endregion

            #region Featrues

            P_L3FE_GFSVfPL_1553 param2 = new P_L3FE_GFSVfPL_1553();
            param2.ProjectIDList = projects.Select(i => i.TMS_PRO_ProjectID).ToArray();
            param2.Is_ArchivedFeatures_Included = false;

            var features = cls_Get_Features_SimpleView_for_ProjectIDList.Invoke(Connection, Transaction, param2, securityTicket).Result;

            #endregion

            #region BusinessTasks

            P_L3BT_GBTSVfPL_1423 param3 = new P_L3BT_GBTSVfPL_1423();
            param3.ProjectIDList             = projects.Select(i => i.TMS_PRO_ProjectID).ToArray();
            param3.Is_ArchivedTasks_Included = false;

            var btasks = cls_Get_BusinessTasks_SimpleView_for_ProjectIDList.Invoke(Connection, Transaction, param3, securityTicket).Result;

            #endregion

            #region Accounts

            P_L3US_GAIfAaT_1157 param4 = new P_L3US_GAIfAaT_1157();
            param4.ApplicationID = Parameter.ApplicationID;

            var accounts = cls_Get_AccountInfos_for_ApplicationIDandTenantID.Invoke(Connection, Transaction, param4, securityTicket).Result;

            #endregion


            returnValue.Result.DeveloperTasks = dtasks;
            returnValue.Result.Features       = features;
            returnValue.Result.BusinessTasks  = btasks;
            returnValue.Result.Accounts       = accounts;
            return(returnValue);

            #endregion UserCode
        }