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

GetGraphPlatform() public method

Comparing Application, Platform vs Platform A ( P v P )
public GetGraphPlatform ( System.Guid graphGuid, System.Guid applicationId, IEnumerable platformTypes, System.DateTime dateStart, System.DateTime dateEnd ) : GraphWithTabularCompare
graphGuid System.Guid
applicationId System.Guid
platformTypes IEnumerable
dateStart System.DateTime
dateEnd System.DateTime
return AppActs.Client.Model.GraphWithTabularCompare
        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;
        }