AppActs.Client.Service.TileService.GetTile C# (CSharp) Method

GetTile() public method

public GetTile ( System.Guid tileGuid, System.Guid applicationId, System.DateTime startDate, System.DateTime endDate, System.DateTime startDateCompare, System.DateTime endDateCompare ) : object
tileGuid System.Guid
applicationId System.Guid
startDate System.DateTime
endDate System.DateTime
startDateCompare System.DateTime
endDateCompare System.DateTime
return object
        public object GetTile(Guid tileGuid, Guid applicationId, DateTime startDate, DateTime endDate, 
            DateTime? startDateCompare, DateTime? endDateCompare)
        {
            ReportDefinitionSummary reportSummary = this.reportRepository.GetReportSummary(tileGuid);
            if (reportSummary.Type == TileType.TrendAndValueOne ||
                reportSummary.Type == TileType.TrendAndValueTwo ||
                reportSummary.Type == TileType.TrendAndValueThree)
            {
                if (!startDateCompare.HasValue && !endDateCompare.HasValue)
                {
                    startDateCompare = startDate.AddMonths(6);
                    endDateCompare = endDate.AddMonths(6);
                }

                return this.tileRepository.Get(reportSummary.Type, reportSummary.Query.Value, applicationId, startDate, endDate, startDateCompare.Value, endDateCompare.Value);
            }
            else
            {
                return this.tileRepository.Get(reportSummary.Type, reportSummary.Query.Value, applicationId, startDate, endDate);
            }
        }