Web Application Without Model

Jela 1 Reputation point
2021-02-11T03:03:27.207+00:00

Is there any other way to create an ASP.NET Web Application .NET Framework (as Frontend) without using a Model class?

I'm using ASP.NET Core Web Application as Backend.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,282 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Wang-MSFT 1,056 Reputation points
    2021-02-12T06:14:14.387+00:00

    Hi, @Jela ,

    The model classes represents domain-specific data and business logic in the MVC application. It represents the shape of the data as public properties and business logic as methods. It can be used in the view to populate the data, as well as sending data to the controller.

    If you have simply data to present, you can create view without model.

    Here is the introduction of ASP.NET MVC Pattern and the overview of ASP.NET Core Model-View-Controller(MVC).

    ---

    If the answer doesn’t solve your issue, please provide more details of error that will help us track down what’s happening.
    If the answer is helpful, please click "Accept Answer" and upvote it.
    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,
    Michael Wang

    0 comments No comments