Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpGet]
- [Route("GetDocumentFromFileStorage")]
- public async Task<HttpResponseMessage> GetDocumentFromFileStorage(string documentName)
- {
- try
- {
- return await new TaskFactory().StartNew(
- () =>
- {
- HttpResponseMessage response = _documentDownloadService.GetDocumentFromFileStorage(documentName.ToString());
- return response;
- });
- }
- catch (Exception ex)
- {
- Log4NetErrorLogger(ex);
- return CreateHttpResponseMessage();
- }
- }
Add Comment
Please, Sign In to add comment