public IHttpActionResult resolutionReport(Guid orgId, Guid projId, Guid? locId) { DateTime? startDate = grabStartDate(); DateTime? endDate = grabEndDate(); ReportData<ResolutionReport.ThemeRow> reportData = ResolutionReport.build(orgId, projId, locId, startDate, endDate); return Ok(reportData); } // resolutionReport
public HttpResponseMessage resolutionReportCSV(Guid orgId, Guid projId, Guid? locId) { DateTime? startDate = grabStartDate(); DateTime? endDate = grabEndDate(); var response = csvStream("resolution.csv", new PushStreamContent((stream, content, context) => { var writer = new StreamWriter(stream); ResolutionReport.buildCSV(writer, orgId, projId, locId, startDate, endDate); })); return response; } // resolutionReport