I have view model which has another child model to render the partial view (below).
public class ExamResultsFormViewModel { public PreliminaryInformationView
For .net core 2 and mvc, use do like below:
@{ Html.ViewData.TemplateInfo.HtmlFieldPrefix = "Contact"; } @await Html.PartialAsync("_YourPartialViewName", Model.Contact)