public IHttpActionResult DownloadFile(Guid fileId) { try { var filePath = FileStorageHelper.FindFile(fileId); return(GetOutputFileAsResponse(filePath, FileStorageHelper.GetClearFileName(Path.GetFileName(filePath), fileId))); } catch (Exception ex) { return(HandleExceptionResult(HttpStatusCode.InternalServerError, "Failed to download file", ex)); } }