public async override Task <FundingOpportunity> GetAsync(Guid id) { var entity = await PortalContext.Set <FundingOpportunity>() .Include(o => o.FundingOpportunityObjectives) .ThenInclude(fo => fo.Objective) .Include(foer => foer.FundingOpportunityExpectedResults) .ThenInclude(er => er.ExpectedResult) .Include(foec => foec.FundingOpportunityEligibilityCriterias) .ThenInclude(ec => ec.EligibilityCriteria) .Include(fas => fas.EligibleClientTypes) .Include(c => c.FundingProgram) .Include(c => c.FundingOpportunityConsiderations) .ThenInclude(ec => ec.Consideration) .Include(c => c.FundingOpportunityResources) .Include(c => c.FundingOpportunityFrequentlyAskedQuestions) .ThenInclude(ec => ec.FrequentlyAskedQuestion) .Include(c => c.FundingOpportunityInternalUsers) .ThenInclude(ec => ec.InternalUser) .SingleOrDefaultAsync(i => i.FundingOpportunityId == id); if (entity != null) { GetProperty.TrySetProperty(entity, "Lang", _Language); } return(entity); }