You could achieve this goal by using one of the following approaches:
- Set the method’s return type to System.Object and later on cast the result of the method in caller;
- Use a generic method;
You cannot declare method return value to be an explicit type of anonymous types.
Hope that helps.
All the best,
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.