I have problem with creating multiple model view
I've created 3 models and then one multiple model:
public partial class DetailsModel
{
public ANIME MyANIME { get; set; }
public CHARACTER MyCHARACTER { get; set; }
public ACTORS MyACTORS { get; set; }
}
After that I added lines to Controller:
public ActionResult Details(int id)
{
DetailsModel myDetailsModel = new DetailsModel();
return View(myDetailModel);
}
And after that View:
<div class="editor-label">
@Html.LabelFor(model => model.MyANIME.TITLE_OR)
</div>
<div>
@Html.DisplayFor(model => model.MyANIME.TITLE_OR)
</div>
But when I start it the data is always empty... Any ideas what is wrong?