We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 204f89d commit 0e88c40Copy full SHA for 0e88c40
Templates/CSharp/Requests/MethodRequest.cs.tt
@@ -77,8 +77,12 @@ else
77
methodReturnType = "System.Threading.Tasks.Task<" + collectionPage + ">";
78
}
79
else
80
- {
81
- methodReturnType = "System.Threading.Tasks.Task<" + returnEntityType + ">";
+ {
+ var returnParameter = sendAsyncReturnType == "ODataMethodIntResponse" ||
82
+ sendAsyncReturnType == "ODataMethodBooleanResponse" ||
83
+ sendAsyncReturnType == "ODataMethodLongResponse" ? returnEntityType + "?"
84
+ : returnEntityType;
85
+ methodReturnType = "System.Threading.Tasks.Task<" + returnParameter + ">";
86
87
88
0 commit comments