Example:
[CreateAngular2TsProxy(ReturnType = typeof(List<Foo>))]
public ActionResult Get(int id, MyEnum enumValue)
{
//...
}
generates
public get(id: number, enumValue: MyEnum) : Observable<Foo[]> {
return this.http.post('api/Foo/Get'+ '?id='+id,enumValue) as Observable<Foo[]>;
}
The generated method does not work as expected and handle the enum value as a complex type and send the value in the body of the post request. So on the server side you never receive a valid value for the enum, it is always null.
Example:
generates
The generated method does not work as expected and handle the enum value as a complex type and send the value in the body of the post request. So on the server side you never receive a valid value for the enum, it is always null.