示例#1
0
        public ReportDetailsDto Get(string id)
        {
            var report           = reportrepository.Get(id);
            var projectWorkspace = projectrepository.GetAll().FirstOrDefault(x => x.WorkspaceId == report.WorkspaceId);
            var projectId        = projectWorkspace.Id;
            var reportDetails    = ObjectMapper.Map <ReportDetailsDto>(report);

            reportDetails.Url = reportsProvider.GetReportUrlAsync(report.Id, id) + "&filter=Project/ProjectId eq " + projectId;

            return(reportDetails);
        }