C
C#10mo ago
Zerraq

Is this MVC?

No description
3 Replies
Kouhai
Kouhai10mo ago
No, seems like a web api with a js client-side frontend
i like chatgpt
i like chatgpt10mo ago
More precisely, - dhl.client is a frontend project consists of HTML, TypeScript, JSON, etc files, - DHL.Server is a backend project that was generated from Asp.Net Core webapi with controllers (rather than Asp.Net Core minimal api). How do we know? Because there are Controllers folder and WeatherForecast.cs that are specific to the template of Asp.net Core webapi with controllers. When using dotnet cli to generate projects, * dotnet new webapi -o DHL.Server generates Asp.Net Core webapi with controllers. There are WeatherForecast.cs and Controllers folders generated. * dotnet new web -o YourProjectName generates Asp.Net Core minimal api. There is no WeatherForecast.cs and Controllers folders generated. Last, an Asp.net Core MVC project consists of , among others, Models, Views, Controllers folders. Your DHL.Server does not have Views folder. So it is not an Asp.Net Core MVC project. If you want to generate Asp.Net Core MVC, use the following command:
dotnet new mvc -o YourProjectName
dotnet new mvc -o YourProjectName
Zerraq
ZerraqOP10mo ago
Understood, thank you!
Want results from more Discord servers?
Add your server