Here's the complete zip file is given.
Pic 1 : showing the code is working fine.
Pic 2 : all these files are present the zip folder
Pic 3 : the desire output which we want
No need to write anything for output just unzip the folder and open it in Visual Studio 2019 and click on .sln file then run the Index.cshtml code, you will get the desired output.