public JsonCamelCaseResult <JSendResponse> ReplayRecordedUserActions(string xmlString, bool disableFieldIdentity, bool disableContentIdentity, bool useGuidSubstitution) { new XmlDbUpdateReplayService( QPConfiguration.GetConnectionString(QPContext.CurrentCustomerCode), CommonHelpers.GetDbIdentityInsertOptions(disableFieldIdentity, disableContentIdentity), QPContext.CurrentUserId, useGuidSubstitution, _xmlDbUpdateLogService, _appInfoRepository, _actionsCorrecterService, _httpContextProcessor ).Process(xmlString); return(new JSendResponse { Status = JSendStatus.Success, Message = "Xml data successfully processed" }); }
protected static string GetConnectionString(string connectionStringOrCustomerCode, DatabaseType dbType) => SqlHelpers.TryParseConnectionString(connectionStringOrCustomerCode, (QP.ConfigurationService.Models.DatabaseType)(int) dbType, out var cnsBuilder) ? cnsBuilder.ConnectionString : QPConfiguration.GetConnectionString(connectionStringOrCustomerCode);
protected static string GetConnectionString(string connectionStringOrCustomerCode) => SqlHelpers.TryParseConnectionString(connectionStringOrCustomerCode, out var cnsBuilder) ? cnsBuilder.ConnectionString : QPConfiguration.GetConnectionString(connectionStringOrCustomerCode);