Example #1
0
 public ActionResult Index(int testID)
 {
     return(View(new TestViewModel
     {
         TestID = testID,
         Test = repository.getTestByID(testID),
         SaveRatings = true,
         Point = 0,
         CurrentQuestionNumber = 0
     }));
 }
 public ActionResult AdminIndex(int testID)
 {
     repository.deactivateTest(testID);
     TempData["Message"] = string.Format("ტესტის წაშლა მოხდა წარმატებით", repository.getTestByID(testID));
     return(RedirectToAction("AdminIndex"));
 }