Hi @MH Khan ,
Okay, I found it. The issue relates the _layout.cshtml
page, there has a page model at the header. After removing it, the code works well:
The result as below:
[Note] To protect your project, if the problem solved, please remember to delete the comment which contains the Github repo link.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion