Ejemplo n.º 1
0
 public ActionResult StatementDetails(Mark mark)
 {
     ModelState.Remove("id_mark");
     try
     {
         if (recordsDAO.AddMark(mark))
         {
             return(RedirectToAction("StatementDetails", recordsDAO.getMarksForStatement(mark.id_statement)));
         }
         else
         {
             return(View("StatementDetails"));
         }
     }
     catch
     {
         return(View("StatementDetails"));
     }
 }