If Controller action passing object of some ViewModel say("otherViewModeObj") to a view Which is Strongly typed to other ViewMOdel say("mainViewModel") then how rendered view access that object directly and also use that object to pass some partial View.
Updated
public class MainViewModel
{
prop1{}
prop2{}
}
public class SubViewModel
{
public list<SubViewModel> obj{ get; set; }
}
Action
Public ActionResut action()
{
return View(SubViewModelObj)//But View is Strongly typed to MainViewModel
}
Then how can i access that obj (of SubViewModelObj) inn that view??