var formData = $(self.parentRow).find('form').serializeArray(); var calendarAttachment = []; calendarAttachment[0] = { PKID: 10 }; calendarAttachment[1] = { PKID: 23 }; calendarAttachment[2] = { PKID: 199 }; formData.push({ name: 'CalendarAttachments', value: calendarAttachment }); $.post('/Calendar/Save', formData, function (json) {...} There is the following code in js. When transferring data to the controller does not want to receive values. And he does not want to receive the values of this array. When transferring other data all the rules.
public List<EventFileItem> CalendarAttachments { get; set; } Above is the property that contains the model.
public class EventFileItem { public long PKID { get; set; } public string Description { get; set; } public long? CalendarId { get; set; } public string FilePath { get; set; } } Tried to make a PKID field and as a string, but nothing helped. HELP!

