TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ekrem Tapan
NA
967
81.2k
How can i return 2 model on 1 view
Oct 25 2016 10:41 PM
Hello Everyone
How do I return two different Views from the same Action in ASP.NET MVC
for ex :
public
ActionResult Index()
{
var CalenderModel = _calendar.getCalender(DateTime.Now.Month, DateTime.Now.Year);
return
View(
new
NewsModel {
ActivityNewsList = DB.ActivityNews.ToList()
});
}
Also want to return CalendarModel on above Action. how can i do it ?
Reply
Answers (
3
)
Get GMap to my ASP.net website
export data from sql to excel