public ActionResult StudentAgreementDetails(int id) { try { StudentAgreementDetailsView model = _studentBusinessLogic.GetStudentAgreementDetailsView(User.Identity.GetUserId(), id); if (model == null) { return(View("UserError", new UserError("Unable to retrieve the agreement"))); } return(View(model)); } catch (Exception e) { return(View("Error", new HandleErrorInfo(e, "Student", "StudentAgreementDetails"))); } }