public DataWithInfo GetGraphWithInfo(Guid graphGuid, Guid applicationId,
DateTime dateStart, DateTime dateEnd)
{
DataWithInfo dataWithInfo = new DataWithInfo();
try
{
ReportDefinitionReportNormal reportNormal = this.reportRepository.GetReportNormal(graphGuid);
dataWithInfo.Info = new GraphInfo(reportNormal.Parent);
dataWithInfo.Data = new Graph(reportNormal.Parent, reportNormal);
List<GraphSeries> graphSeries =
this.dataRepository.GetGraphAxis(reportNormal.Query.Value, applicationId, dateStart, dateEnd);
dataWithInfo.Data.Series = graphSeries;
dataWithInfo.Tabular = graphSeries.First();
}
catch (DataAccessLayerException)
{
throw;
}
catch (Exception ex)
{
throw new ServiceLayerException(ex);
}
return dataWithInfo;
}