public static IQueryable <QuoteInfo> GetQuoteInfo(IQueryable <Quote> quotes) { return(quotes.ActualQuotes().Select(x => new QuoteInfo { Id = x.Id, State = x.CustomerStore.Address.State, City = x.CustomerStore.Address.City, Date = x.Date, Total = x.Total, Opportunity = x.Opportunity, })); }