public int SaveConfigSettings(ConfigurationSettingDetail objConfigurationSettingDetail)
        {
            int isInserted = 0;

            logMessage = new StringBuilder();
            try
            {
                logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, DecisionPointR.logmessagestart, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
                if (!string.IsNullOrEmpty(Convert.ToString(Session["UserId"], CultureInfo.InvariantCulture)))
                {
                    userId = Convert.ToInt32(HttpContext.Session["UserId"], CultureInfo.InvariantCulture);
                    objDecisionPointEngine        = new DecisionPointEngine();
                    objConfiguratonSettingRequest = new ConfiguratonSettingRequest()
                    {
                        #region Config Properties
                        IsCoveragearea          = objConfigurationSettingDetail.IsCoveragearea,
                        IsClient                = objConfigurationSettingDetail.IsClient,
                        IsIc                    = objConfigurationSettingDetail.IsIc,
                        IsServices              = objConfigurationSettingDetail.IsServices,
                        IsClientOnMyProfile     = objConfigurationSettingDetail.IsClientOnMyProfile,
                        IsVendor                = objConfigurationSettingDetail.IsVendor,
                        IsICFreeBasicMembership = objConfigurationSettingDetail.IsICFreeBasicMembership,
                        IsWebinarApply          = objConfigurationSettingDetail.IsWebinarApply,
                        IsScormApply            = objConfigurationSettingDetail.IsScormApply,
                        IsICUsePackages         = objConfigurationSettingDetail.IsICUsePackages,
                        IsICInsApply            = objConfigurationSettingDetail.IsICInsApply,
                        IsICCommApply           = objConfigurationSettingDetail.IsICCommApply,
                        IsStaffCommApply        = objConfigurationSettingDetail.IsStaffCommApply,
                        IsStaffInsApply         = objConfigurationSettingDetail.IsStaffInsApply,

                        IsBgCheckForIC        = objConfigurationSettingDetail.IsBgCheckForIC,
                        IsLiceInsForIC        = objConfigurationSettingDetail.IsICLicenseApply,
                        IsAddCreForIC         = objConfigurationSettingDetail.IsAddCreForIC,
                        IsCoverageAreaForIC   = objConfigurationSettingDetail.IsCoverageAreaForIC,
                        IsServicesForIC       = objConfigurationSettingDetail.IsAddCreForIC,
                        IsICClientOnMyProfile = objConfigurationSettingDetail.IsICClientOnMyProfile,

                        IsAddCreForStaff         = objConfigurationSettingDetail.IsAddCreForStaff,
                        IsBgCheckForStaff        = objConfigurationSettingDetail.IsBgCheckForStaff,
                        IsCoverageAreaForStaff   = objConfigurationSettingDetail.IsCoverageAreaForStaff,
                        IsServicesForStaff       = objConfigurationSettingDetail.IsServicesForStaff,
                        IsStaffClientOnMyProfile = objConfigurationSettingDetail.IsStaffClientOnMyProfile,
                        IsLicenseForStaff        = objConfigurationSettingDetail.IsLicenseForStaff,
                        IsClientNameApplyForIC   = objConfigurationSettingDetail.IsClientNameApplyForIC,
                        IsContractApply          = objConfigurationSettingDetail.IsContractApply,
                        #endregion
                        #region Other
                        UserId    = objConfigurationSettingDetail.UserId,
                        CompanyId = objConfigurationSettingDetail.CompanyId,
                        CreatedBy = userId
                                    #endregion
                    };
                    isInserted = objDecisionPointEngine.SaveConfigSetting(objConfiguratonSettingRequest);
                }
                else
                {
                    objactionresult = RedirectToAction("Login", "Login");
                }
            }
            catch (Exception ex)
            {
                log.ErrorFormat(DecisionPointR.logmessageerror, ex.ToString(), typeof(LoginController).Name, MethodBase.GetCurrentMethod().Name);
            }
            finally
            {
                logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, DecisionPointR.logmessagend, MethodBase.GetCurrentMethod().Name));
                log.Info(logMessage.ToString());
            }
            return(isInserted);
        }