/// <summary> /// Gets the student assignment submission. /// </summary> /// <param name="studentId">The student id.</param> /// <param name="assignmentId">The assignment id.</param> /// <returns></returns> public AssignmentSubmissionViewModel GetStudentAssignmentSubmission(int studentId, int assignmentId) { AssignmentSubmissionViewModel model = null; try { Assignment assignment = AssignmentManager.GetAssignmentForStudent(studentId, assignmentId); model = AssignmentSubmissionViewModelFactory.CreateStudentAssignmentSubmissionViewModel(assignment, studentId, ObjectMapper); } catch (Exception ex) { ExceptionManager.HandleException(ex, PolicyNameType.ExceptionReplacing); } return(model); }