Last active
January 3, 2016 23:39
-
-
Save bjartwolf/8536940 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[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