Boy_Scouts_Scheduler.Controllers.SchedulingConstraintController.PartialEditView C# (CSharp) Метод

PartialEditView() защищенный Метод

protected PartialEditView ( SchedulingConstraint schedulingconstraint = null ) : System.Web.Mvc.PartialViewResult
schedulingconstraint Boy_Scouts_Scheduler.Models.SchedulingConstraint
Результат System.Web.Mvc.PartialViewResult
        protected PartialViewResult PartialEditView(SchedulingConstraint schedulingconstraint = null)
        {
            ViewBag.GroupTypes = db.GroupTypes.ToList();
            ViewBag.GroupTypes.Insert(0, new GroupType { ID = -1 }); // Allow null preferences
            ViewBag.Groups = db.Groups.Where(g => g.Event.ID == eventID).ToList();
            ViewBag.Groups.Insert(0, new Group { ID = -1 }); // Allow null preferences
            ViewBag.Stations = db.Stations.Where(s => s.Event.ID == eventID).ToList();
            ViewBag.Stations.Insert(0, new Station { ID = -1 }); // Allow null preferences
            return PartialView("Edit", schedulingconstraint);
        }