Hi guys. Can you help me how to create my own ViewData.Model from mesto?
public ActionResult Index()
{
ViewData["Message"] = "Moji Priatelia";
var friends = from friend in friendsDb.FriendsTables
orderby friend.Priezvisko
select friend;
var mesto = from mesta in friendsDb.MestoTables
orderby mesta.Mesto
select mesta;
return View(friends);
}
when i add new view ViewData.Model have data from friends but no from mesto how can i create model for mesto? Thanks a lot i am Beginner.