@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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manish Kumar ChoudharyPosted Feb 27, 2015, 12:56 AM
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
Tom MohanPosted Feb 27, 2015, 12:48 AM
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"