コード例 #1
0
        public ResponseModel setOrganization()
        {
            string sFunctionName = "setOrganization()";

            ResponseModel Response = new ResponseModel();

            try
            {
                OrganizationModel OrganizationModel = new OrganizationModel();
                OrganizationModel.Initialize();
            }
            catch (Exception ex)
            {
            }

            return(Response);
        }
コード例 #2
0
        public ResponseModel setOrganization()
        {
            string sFunctionName = "setOrganization()";

            #region Text Logging
            MvcApplication.oLog.Log(
                sClassName,
                sFunctionName,
                "Going to fetch Organization Configuration.");
            #endregion Text Logging

            ResponseModel Response = new ResponseModel();
            try
            {
                //OrganizationStructure OrganizationStruct = new OrganizationStructure();
                //Response = OrganizationStruct.setOrganization();
                OrganizationModel OrganizationModel = new OrganizationModel();
                OrganizationModel.Initialize();
                if (OrganizationModel != null)
                {
                    bool LicenseHashSet = OrganizationModel.setLicenseHash();
                    if (LicenseHashSet)
                    {
                        ApplicationWrapper.OrganizationModel = OrganizationModel;
                        Response.SuccessfullyPassed();
                    }
                    else
                    {
                        #region Text Logging
                        MvcApplication.oLog.Log(
                            sClassName,
                            sFunctionName,
                            "Failed to Set Licenses.");
                        #endregion Text Logging
                        Response.FailedWithoutException();
                    }
                }
                else
                {
                    #region Text Logging
                    MvcApplication.oLog.Log(
                        sClassName,
                        sFunctionName,
                        "Failed to fetch Organization Configuration.");
                    #endregion Text Logging
                    Response.FailedWithoutException();
                }
            }
            catch (Exception ex)
            {
                #region Text Logging
                oLog.Log(
                    sClassName,
                    sFunctionName,
                    ex.ToString());
                #endregion Text Logging
                Response.FailedWithException();
            }

            return(Response);
        }