I have to create Razor Page witch shows items from my web api endpoint link. I have watched hours of tutorials, I know I have to use get method but I am just stuck. It is frustrating because I have figured out everithing else for my project. I am using Visual studio 2022 comunity and net core 6., MSSMS.
Edit: So I have resolved how to get my data from web api with HttpClient, but now my data can not be convertet to my model. I got this error: The JSON value could not be converted to BlazorApp1.Model.CarDealerModel. Path: $ | LineNumber: 0 | BytePositionInLine: 1.
Here is code for model:Model
Code for Razor:codeForRazor1
Codefor Prgram.csprogram.cs