public class PartyContacts
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Address { get; set; }
public string Apartment { get; set; }
public string City { get; set; }
public string State { get; set; }
public string PostalCode { get; set; }
public string HomePhone { get; set; }
public string WorkPhone { get; set; }
public string FaxNumber { get; set; }
public string EmailAddress { get; set; }
public List<string> phones { get; set; }
}
Here my Knockout Modal
my.vm = {
Profile: ko.observableArray([]),
AddProfile: function () {
my.vm.Profile.push({
FirstName: "Oscar",
LastName: "Martinez",
phones: ko.observableArray()
});
},
AddProfilePhone: function (Profile) {
Profile.phones.push({
type: "1",
number: "2"
});
},
}