/// <summary>IsProcess /// It fills all properties. /// </summary> public SingleActionSettingDTO(int portalId, System.Collections.Hashtable moduleSettings) { this.WebApiAddress = PortalController.GetPortalSetting(SingleActionSettingDTO.e_SettingType.SingleAction_WebApiAddress.ToString(), portalId, string.Empty); this.WebServicePass = PortalController.GetPortalSetting(SingleActionSettingDTO.e_SettingType.SingleAction_WebServicePass.ToString(), portalId, string.Empty); this.ApplicationPageID = moduleSettings.GetValueOrDefault(SingleActionSettingDTO.e_SettingType.SingleAction_ApplicationPageID.ToString(), string.Empty).ToGuidObjNull(); this.AppPageSubmitMessage = moduleSettings.GetValueOrDefault(SingleActionSettingDTO.e_SettingType.SingleAction_AppPageSubmitMessage.ToString(), string.Empty); this.ProcessID = moduleSettings.GetValueOrDefault(SingleActionSettingDTO.e_SettingType.SingleAction_ProcessID.ToString(), string.Empty).ToGuidObjNull(); this.ShowCardBody = moduleSettings.GetValueOrDefault(SingleActionSettingDTO.e_SettingType.SingleAction_ShowCardBody.ToString(), string.Empty).ToStringObj().ToLower() == "true"; this.ProcessEndFormID = moduleSettings.GetValueOrDefault(SingleActionSettingDTO.e_SettingType.SingleAction_ProcessEndFormID.ToString(), string.Empty).ToGuidObjNull(); this.LoadjQuery = moduleSettings.GetValueOrDefault(SingleActionSettingDTO.e_SettingType.SingleAction_Jquery.ToString(), string.Empty).ToStringObj().ToLower() == "true";; this.LoadBootstrap = moduleSettings.GetValueOrDefault(SingleActionSettingDTO.e_SettingType.SingleAction_Bootstrap.ToString(), string.Empty).ToStringObj().ToLower() == "true"; //if (string.IsNullOrWhiteSpace(this.WebApiAddress) && request != null) //{ // this.WebApiAddress = request.Url.Scheme + "://" + request.Url.Authority + request.ApplicationPath.TrimEnd('/'); //} }