Ejemplo n.º 1
0
        ///////////////////////
        List <MyRole> MyRoleSelectList()
        {
            var myRoles = _myRoleIprogrammeRepository.List().ToList();

            myRoles.Insert(0, new MyRole {
                MyRoleId = "", MyRoleName = "-Select Role-"
            });
            myRoles.Insert(1, new MyRole {
                MyRoleId = "Admin", MyRoleName = "Admin"
            });
            myRoles.Insert(2, new MyRole {
                MyRoleId = "Sensor", MyRoleName = "Sensor"
            });
            myRoles.Insert(3, new MyRole {
                MyRoleId = "Student", MyRoleName = "Student"
            });

            return(myRoles);
        }
Ejemplo n.º 2
0
        ///////////////////////

        List <Programme> ProgrammeSelectList()
        {
            var programmes = _programmeRepository.List().ToList();

            programmes.Insert(0, new Programme {
                ProgrammeCode = "", ProgrammeName = "--Select from menu--"
            });
            programmes.Insert(1, new Programme {
                ProgrammeCode = "ITIS", ProgrammeName = "IT og Info"
            });
            programmes.Insert(2, new Programme {
                ProgrammeCode = "OKLED", ProgrammeName = "Okonomi"
            });
            programmes.Insert(3, new Programme {
                ProgrammeCode = "Annet", ProgrammeName = "Annet"
            });

            return(programmes);
        }