IEnumerable is null when I expect values
问题 I am using the approach in this article to return a list of objects that are posted to my action. My method looks like: // // POST: /LeaveRequest/Create [Authorize, HttpPost] public ActionResult Create(LeaveRequest leaveRequest, IEnumerable<DayRequested> requestedDays) { return RedirectToAction("Index", lrRepository.GetLeaveRequests(472940821)); } leaveRequest has the data that I expect. requestedDays contains the number of rows I expect, but all of the rows contain null in each field. Any