public static StudentEditMasterDetail NewStudentMasterDetail()
        {
            var studentMasterDetail = new StudentEditMasterDetail();
            studentMasterDetail.Students = StudentInfo.GetStudentInfoList();

            if (studentMasterDetail.Students.Count > 0)
                studentMasterDetail.StudentEdit = Student.GetStudentById(studentMasterDetail.Students[0].StudentId);

            return studentMasterDetail;
        }
        public static StudentEditMasterDetail NewStudentMasterDetail()
        {
            var studentMasterDetail = new StudentEditMasterDetail();

            studentMasterDetail.Students = StudentInfo.GetStudentInfoList();

            if (studentMasterDetail.Students.Count > 0)
            {
                studentMasterDetail.StudentEdit = Student.GetStudentById(studentMasterDetail.Students[0].StudentId);
            }

            return(studentMasterDetail);
        }