Created
December 14, 2017 12:39
-
-
Save Segment0895/3512e82032bf3d42b6dd6d8b7559aa0c to your computer and use it in GitHub Desktop.
Transparently Proxy WebApi Call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static async Task<IHttpActionResult> CriarPedidoAsyncTransparente<X, Y>(X pedido, string path) | |
{ | |
HttpResponseMessage resp2 = await client.PostAsJsonAsync("/api/" + path, pedido); | |
ResponseMessageResult msg2 = new ResponseMessageResult(resp2); | |
return msg2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment