public class PersonelInfoAndEmploymentInfo
{
public employmentInfo _empinfo{set;get;}
public PersonelInfo _pinfo { set; get; }
public PersonelInfoAndEmploymentInfo()
{
_empinfo = new employmentInfo();
_pinfo = new PersonelInfo();
}
}
change your class like this