Esempio n. 1
0
 public ActionResult ViewClasses(int action = 0, int delete = 0)
 {
     if (action != 0)
     {
         return(RedirectToAction("ClassFullInf", "Teacher", new { id = action }));
     }
     else
     {
         ClassesDB.DeleteClass(delete);
         return(RedirectToAction("ViewClasses", "Teacher"));
     }
 }