@model PagedList.IPagedList
@model SchoolManagementApplication.Models.Payroll_Helpers
i can't use in both in
.chtml page
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tom MohanRank #912 · 2.3K reputationPosted Feb 26, 2015, 7:48 PM EST
If you want to use more than one model then pls refer
http://www.codeproject.com/Articles/687061/Multiple-Models-in-a-View-in-ASP-NET-MVC-MVC
If its useful, mark it as "Accept Answer"
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Feb 26, 2015, 7:56 PM EST
for more details about view model class
Go through followings links it will help you
http://stackoverflow.com/questions/11064316/what-is-viewmodel-in-mvc
http://www.dotnet-tricks.com/Tutorial/mvc/QHQT270712-Understanding-ViewModel-in-ASP.NET-MVC.html
http://www.asp.net/mvc/overview/getting-started/introduction/adding-a-model