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());
        }
Пример #2
0
        private string GetStudentNumber(int studentUserID)
        {
            var student = Serializers <Student> .Deserialize(studentContext.GetStudentByUserID(studentUserID));

            return(student.StudentNumber);
        }