Esempio n. 1
0
        public static Student GetStudentDataByUser(User user)
        {
            if (user == null || user.FakNum == null)
            {
                Console.WriteLine("No such student!"); return(null);
            }
            Student student = StudentData.foundStudentByNumber(user.FakNum);

            if (student == null)
            {
                Console.WriteLine("No such student!"); return(null);
            }
            return(student);
        }