AppActs.Client.Service.ReportService.GetGraphWithInfo C# (CSharp) Method

GetGraphWithInfo() public method

Getting statistics for platform and application P A V
public GetGraphWithInfo ( System.Guid graphGuid, System.Guid applicationId, System.DateTime dateStart, System.DateTime dateEnd ) : DataWithInfo
graphGuid System.Guid
applicationId System.Guid
dateStart System.DateTime
dateEnd System.DateTime
return AppActs.Client.Model.DataWithInfo
        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;
        }