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

GetReportComparePlatform() public method

public GetReportComparePlatform ( System.Guid id ) : ReportDefinitionReportComparePlatform
id System.Guid
return ReportDefinitionReportComparePlatform
        public ReportDefinitionReportComparePlatform GetReportComparePlatform(Guid id)
        {
            return this.cacheReportComparePlatform.Fetch
                (
                    String.Format("ReortRepository.GetReportComparePlatform.{0}", id),
                    () =>
                    {
                        return this.GetAll()
                            .Where(x => x.ReportComparePlatform != null && x.ReportComparePlatform.Guid == id)
                            .Select(x => { x.ReportComparePlatform.Parent = x; return x.ReportComparePlatform; }).First();
                    }, null, null
                );
        }