public ControlSet PostCreateControlset(long orgId, long matterId, long datasetId, long projectId, ControlSet controlSet) { var client = GetAnalyticsRestClient(); return client.CreateControlset(matterId.ToString(CultureInfo.InvariantCulture), datasetId.ToString(CultureInfo.InvariantCulture), projectId.ToString(CultureInfo.InvariantCulture), controlSet); }
public int PostCalculateSampleSize(long orgId, long matterId, long datasetId, ControlSet controlSet) { var confidenceLevel = Convert.ToDouble(controlSet.ConfidenceLevel, CultureInfo.InvariantCulture)/100; var marginOfError = Convert.ToDouble(controlSet.MarginOfError, CultureInfo.InvariantCulture)/100; var client = GetAnalyticsRestClient(); return client.GetControlsetSampleSize(matterId.ToString(CultureInfo.InvariantCulture), datasetId.ToString(CultureInfo.InvariantCulture), confidenceLevel.ToString(CultureInfo.InvariantCulture), marginOfError.ToString(CultureInfo.InvariantCulture)); }