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
);
}