ASP.NET Core | View-Model

ViewModel is used to pass a complex data from controller to view. ViewModel data is prepared from different models and passed to view to display that data. For example, A Complex data model can be passed with the help of ViewModel.


    Class Author{
    public int Id {get;set;}
    public Book Book {get;set;}
    }
    Class Book{
    public string Name {get;set;}
    public string PublisherName {get;set;}
    }

Comments

Popular posts from this blog

ASP.NET Core | Change Token

ASP.NET Core | Open Web Interface for .NET (OWIN)

How will you improve performance of ASP.NET Core Application?