public ActionResult UniversityAgreement(UniversityAgreementViewModel model) { if (model.SourceUniversityId == 0 || model.TargetUniversityId == 0) { ModelState.AddModelError("University", "Missing university selection."); } try { _adminBusinessLogic.SaveNewUniversityAgreement(model.SourceUniversityId, model.TargetUniversityId); } catch (Exception e) { ModelState.AddModelError("Error", e.Message); } return(RedirectToActionPermanent("UniversityAgreements")); }