コード例 #1
0
        public ActionResult Index()
        {
            User LoggedInUser = Session["LoggedUser"] as User;

            ViewBag.RosterType  = new SelectList(db.RosterTypes.OrderBy(s => s.Name), "ID", "Name");
            ViewBag.ShiftList   = new SelectList(GetListOfShift(), "ShiftID", "ShiftName");
            ViewBag.CrewList    = new SelectList(CustomFunction.GetCrewList(LoggedInUser, db.Crews.ToList()), "CrewID", "CrewName");
            ViewBag.SectionList = new SelectList(CustomFunction.GetSections(LoggedInUser, db.Sections.ToList()), "SectionID", "SectionName");
            return(View());
            //return View();
        }