How do I merge two lists when using REST services? You can't use union with linq and dataservicequery so I'm not sure where to go.
The following doesn't work with dataservicequery...
var docQuery = (from docs in context.Documents.AsQueryable()
select new DocsColumns()
{
Title = docs.Title
// Element = docs.Elements.Title
})
.Union(from rules in context.Rules.AsQueryable()
select new DocsColumns()
{
Title = rules.Title
// Element = rules.Elements.Title
});
as DataServiceQuery<DocsColumns>;
This link doesn't help much either.... https://stackoverflow.com/questions/720609/merge-two-object-lists-with-linq
Any ideas? Really struggling on this one.