public ActionResult Edit(int id) { var student = Serializers <Student> .Deserialize(studentContext.GetStudentByUserID(id)); if (student != null) { var svm = Mapper.Map <StudentViewModel>(student); return(View(svm)); } return(View()); }
private string GetStudentNumber(int studentUserID) { var student = Serializers <Student> .Deserialize(studentContext.GetStudentByUserID(studentUserID)); return(student.StudentNumber); }