I have a set of web service methods returning a ActionResult class holding the following properties:
object returnValue
bool success
string message
the returnValue is used to hold different types of return values depending on the web methods used.
The problem I have on the client is that if a web method is returning an internal class in the returnValue I can't cast it due to the client don't recognize the type.
I can fejk methods to be able to expose the class "Issue" I need.
Ex:
Issue ExposeIssueType()
{
return null;
}
But isn't there any other way?