Exemplo n.º 1
0
        public static string returnSubjectName(int SubjectID)
        {
            DBContextClass db      = new DBContextClass();
            Subject        Subject = db.Subjects.Single(s => s.ID == SubjectID);

            return(Subject.Name);
        }
Exemplo n.º 2
0
        public static string returnUserTypeName(int UserTypeID)
        {
            DBContextClass db       = new DBContextClass();
            UserType       UserType = db.UserTypes.Single(u => u.ID == UserTypeID);

            return(UserType.Name);
        }
Exemplo n.º 3
0
        public static string returnUserName(int UserID)
        {
            DBContextClass db   = new DBContextClass();
            User           user = db.Users.Single(u => u.ID == UserID);

            return(user.Name);
        }