Skip to content

Commit ea6c37f

Browse files
authored
Update get-answer-from-knowledge-base-csharp.md
1 parent 8bf3129 commit ea6c37f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cognitive-services/QnAMaker/Quickstarts/get-answer-from-knowledge-base-csharp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ At the top of the Program.cs file, replace the single using statement with the f
4646

4747
At the top of the `Program` class, inside the `Main`, add the required constants to access QnA Maker. These values are on the **Publish** page after you publish the knowledge base.
4848

49-
[!code-csharp[Add the required constants](~/samples-qnamaker-csharp/documentation-samples/quickstarts/get-answer/QnAMakerAnswerQuestion/Program.cs?range=14-30 "Add the required constants")]
49+
[!code-csharp[Add the required constants](~/samples-qnamaker-csharp/documentation-samples/quickstarts/get-answer/QnAMakerAnswerQuestion/Program.cs?range=9-41 "Add the required constants")]
5050

5151
## Add a POST request to send question and get answer
5252

5353
The following code makes an HTTPS request to the QnA Maker API to send the question to the knowledge base and receives the response:
5454

55-
[!code-csharp[Add a POST request to send question to knowledge base](~/samples-qnamaker-csharp/documentation-samples/quickstarts/get-answer/QnAMakerAnswerQuestion/Program.cs?range=32-57 "Add a POST request to send question to knowledge base")]
55+
[!code-csharp[Add a POST request to send question to knowledge base](~/samples-qnamaker-csharp/documentation-samples/quickstarts/get-answer/QnAMakerAnswerQuestion/Program.cs?range=43-76 "Add a POST request to send question to knowledge base")]
5656

5757
The `Authorization` header's value includes the string `EndpointKey`.
5858

0 commit comments

Comments
 (0)