AppActs.Client.Repository.ReportRepository.GetReportCompareApplication C# (CSharp) Method

GetReportCompareApplication() public method

public GetReportCompareApplication ( System.Guid id ) : ReportDefinitionReportReportCompareApplication
id System.Guid
return ReportDefinitionReportReportCompareApplication
        public ReportDefinitionReportReportCompareApplication GetReportCompareApplication(Guid id)
        {
            return this.cacheReportCompareApplication.Fetch
                (
                    String.Format("ReortRepository.GetReportCompareApplication.{0}", id),
                    () =>
                    {
                        return this.GetAll()
                            .Where(x => x.ReportCompareApplication != null && x.ReportCompareApplication.Guid == id)
                            .Select(x => { x.ReportCompareApplication.Parent = x; return x.ReportCompareApplication; }).First();
                    }, null, null
                );
        }