public ActionResult Create_Attendees([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")] IEnumerable <AttendeeViewModel> attendees) { var results = new List <AttendeeViewModel>(); if (attendees != null && ModelState.IsValid) { foreach (var attendee in attendees) { _attendeeService.Insert(attendee, ModelState); results.Add(attendee); } } return(Json(results.ToDataSourceResult(request, ModelState))); }