public string ExportModule(Module module) { string content = ""; List <ReportViewer> ReportViewers = _ReportViewers.GetReportViewers(module.ModuleId).ToList(); if (ReportViewers != null) { content = JsonSerializer.Serialize(ReportViewers); } return(content); }
public IEnumerable <ReportViewer> Get(string moduleid) { return(_ReportViewers.GetReportViewers(int.Parse(moduleid))); }