public IActionResult StudentInfo(int studentId = 0) { Student student = new Student(); if (studentId == 0) { student.StudentId = 0; } else { StudentViewModel svm = new StudentViewModel(); student = svm.GetStudentByStudentId(studentId); } return(View(student)); }