public GraphWithTabularCompare GetGraphApplications(Guid graphGuid, Guid applicationId,
IEnumerable<Guid> applicationIdsCompare, DateTime dateStart, DateTime dateEnd)
{
GraphWithTabularCompare graphWithTabularCompare = new GraphWithTabularCompare();
try
{
if (applicationIdsCompare.Count() > 0)
{
ReportDefinitionReportReportCompareApplication reportApplication =
this.reportRepository.GetReportCompareApplication(graphGuid);
graphWithTabularCompare.Data = new Graph(reportApplication.Parent, reportApplication);
graphWithTabularCompare.Data.Series = this.dataRepository.GetGraphAxis(reportApplication.Query.Value,
applicationIdsCompare, dateStart, dateEnd);
graphWithTabularCompare.Tabular = graphWithTabularCompare.Data.Series;
}
}
catch (DataAccessLayerException)
{
throw;
}
catch (Exception ex)
{
throw new ServiceLayerException(ex);
}
return graphWithTabularCompare;
}