我正在使用一个对象但在对象内部我有一个属性是一个对象列表.我希望将该对象与其中的列表对象一起传递,但是当我提交表单时列表为空.我不知道如何处理这个问题.
类
public class VSTAttendance
{
public int MemberID { get; set; }
public string Name { get; set; }
public string Surname { get; set; }
public bool Attendant { get; set; }
}
public class ServiceAttendance
{
public int AttendanceID { get; set; }
public int AttendanceTypeID { get; set; }
public string AttendanceType { get; set; }
public DateTime Service { get; set; }
public int ServiceID { get; set; }
public string Speaker { get; set; …Run Code Online (Sandbox Code Playgroud)