Boy_Scouts_Scheduler.Controllers.StationController.PrepareTimeSlotCheckBoxes C# (CSharp) Méthode

PrepareTimeSlotCheckBoxes() protected méthode

protected PrepareTimeSlotCheckBoxes ( ) : void
Résultat void
        protected void PrepareTimeSlotCheckBoxes()
        {
            // TODO: select timeslots only from current event
            ViewBag.TimeSlots =
                (from slot in db.TimeSlots
                 where slot.Event.ID == eventID && slot.isGeneral == false
                group slot by new
                {
                    y = slot.Start.Year,
                    m = slot.Start.Month,
                    d = slot.Start.Day
                }).ToList().Select(g => g.OrderBy(slot => slot.Start).GetEnumerator()).ToArray();
        }