I have a WebAPI...
inside this webAPI I reference a Class Library where I do a lot of my actual processing.
For example
public static ObjModel WebAPIMethod(string a, string b, string c) { Collection<string> returnFromClassLibrary = ClassLibrary.SomeMethod(a,b,c); }
The everything is fine if i use a primitive but when I try to use any kind of object it blows up with a 500 error.
Obviously I have deduced that there is some problem in serializing this object from the class library back to the WebAPI method.
Is there a way to use something other than primitives?