Esempio n. 1
0
        public ActionResult Update_Attendees([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")] IEnumerable <AttendeeViewModel> attendees)
        {
            if (attendees != null && ModelState.IsValid)
            {
                foreach (var attendee in attendees)
                {
                    _attendeeService.Update(attendee, ModelState);
                }
            }

            return(Json(attendees.ToDataSourceResult(request, ModelState)));
        }