public static Student GetStudentDataByUser(User u) { if (u.fNumber == 0 || StudentData.GetStudent(u.fNumber) == null) { Console.WriteLine("Не е открит такъв студент."); return(null); } return(StudentData.GetStudent(u.fNumber)); }
public Student GetStudentDataByUser(User user) { if (user.number == null || StudentData.GetStudent(user.number) == null) { throw new Exception(); } else { return(StudentData.GetStudent(user.number)); } }
public Student GetStudentDataByUser(User user) { return(StudentData.GetStudent(user.FacNumber)); }