public async Task <EmbedConfig> EmbedReport(EmbedReportRequestVM embedReportRequest) { var embedRequest = new EmbedReportRequest { Credential = new UserData { SecretId = embedReportRequest.Credential.SecretId, TenantId = embedReportRequest.Credential.TenantId, ApplicationId = embedReportRequest.Credential.ApplicationId }, EmbedRoles = embedReportRequest.EmbedRoles, ReportId = embedReportRequest.ReportId, EmbedUserName = embedReportRequest.EmbedUserName, WorkSpaceId = embedReportRequest.WorkSpaceId, EmbedReportUrl = embedReportRequest.EmbedReportUrl, ParaMeters = embedReportRequest.ParaMeters.Select(s => new EmbededReportDataSetParam { ParaType = s.ParaType, ParamName = s.ParamName, ParamValue = s.ParamValue }).ToArray() }; var result = await _powerService.ClientEmbedReport(embedRequest); var responseData = result; return(responseData); }