Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Last active January 3, 2016 23:39
Show Gist options
  • Save bjartwolf/8536940 to your computer and use it in GitHub Desktop.
Save bjartwolf/8536940 to your computer and use it in GitHub Desktop.
[Route("")]
public HttpResponseMessage GetResult()
{
var result = File.ReadAllText(@"C:\data\SwissProt.xml");
var response = new HttpResponseMessage(HttpStatusCode.OK)
{
Content = new StringContent(result)
};
response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/xml");
return response;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment