Пример #1
0
        public SelectList GetStaffList()
        {
            StaffDataController staffController = new StaffDataController();
            SelectList          staffList       = staffController.GetStaffDropDown();

            return(new SelectList(staffList, "Value", "Text"));
        }
Пример #2
0
        //creates a list of staff members as a selectlist. Used for dropdown boxes
        public SelectList GetStaffList()
        {
            SelectList          staffList;
            StaffDataController dataController = new StaffDataController();

            staffList = dataController.GetStaffDropDown();

            return(new SelectList(staffList, "Value", "Text", new Staff().staffID));
        }