public GraphWithTabularCompare GetGraphPlatform(Guid graphGuid, Guid applicationId,
IEnumerable<PlatformType> platformTypes, DateTime dateStart, DateTime dateEnd)
{
GraphWithTabularCompare graphWithTabularCompare = new GraphWithTabularCompare();
try
{
if (platformTypes.Count() > 0)
{
ReportDefinitionReportComparePlatform reportPlatform =
this.reportRepository.GetReportComparePlatform(graphGuid);
graphWithTabularCompare.Data = new Graph(reportPlatform.Parent, reportPlatform);
graphWithTabularCompare.Data.Series = this.dataRepository.GetGraphAxis(reportPlatform.Query.Value,
applicationId, platformTypes, dateStart, dateEnd);
graphWithTabularCompare.Tabular = graphWithTabularCompare.Data.Series;
}
}
catch (DataAccessLayerException)
{
throw;
}
catch (Exception ex)
{
throw new ServiceLayerException(ex);
}
return graphWithTabularCompare;
}