示例#1
0
 public ActionResult SubmitAgreement(int id)
 {
     try
     {
         _studentBusinessLogic.SubmitAgreement(User.Identity.GetUserId(), id);
     }
     catch (FormValidationException e)
     {
         return(View("UserError", new UserError(e.Error)));
     }
     return(RedirectToAction("MyAgreements"));
 }