Beispiel #1
0
 public ActionResult AddExamPaperInExams(int examID, int examPaperID)
 {
     try
     {
         examService.AddExamPaperIntoExams(examPaperID, examID);
         return(RedirectToAction("UpdateExamPaper", "Exams", new { id = examID }));
     }
     catch (Exception e)
     {
         Failure = "Something went wrong, please try again!";
         return(RedirectToAction("UpdateExamPaper", "Exams", new { id = examID }));
     }
 }