Skip to content

Instantly share code, notes, and snippets.

@Segment0895
Created December 14, 2017 12:39
Show Gist options
  • Save Segment0895/3512e82032bf3d42b6dd6d8b7559aa0c to your computer and use it in GitHub Desktop.
Save Segment0895/3512e82032bf3d42b6dd6d8b7559aa0c to your computer and use it in GitHub Desktop.
Transparently Proxy WebApi Call
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