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

GetGraphVersions() public method

Comparing platform application A (V v V)
public GetGraphVersions ( System.Guid graphGuid, System.Guid applicationId, IEnumerable versions, System.DateTime dateStart, System.DateTime dateEnd ) : GraphWithTabularCompare
graphGuid System.Guid
applicationId System.Guid
versions IEnumerable
dateStart System.DateTime
dateEnd System.DateTime
return AppActs.Client.Model.GraphWithTabularCompare
        public GraphWithTabularCompare GetGraphVersions(Guid graphGuid, Guid applicationId, 
            IEnumerable<string> versions,  DateTime dateStart, DateTime dateEnd)
        {
            GraphWithTabularCompare graphWithTabularCompare = new GraphWithTabularCompare();

            try
            {
                if (versions.Count() > 0)
                {
                    ReportDefinitionReportReportCompareVersion reportVersion =
                        this.reportRepository.GetReportCompareVersion(graphGuid);

                    graphWithTabularCompare.Data = new Graph(reportVersion.Parent, reportVersion);

                    graphWithTabularCompare.Data.Series =
                        this.dataRepository.GetGraphAxis
                        (
                            reportVersion.Query.Value,
                            applicationId,
                            versions,
                            dateStart,
                            dateEnd
                        );

                    graphWithTabularCompare.Tabular = graphWithTabularCompare.Data.Series;
                }
            }
            catch (DataAccessLayerException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw new ServiceLayerException(ex);
            }

            return graphWithTabularCompare;
        }