public ActionResult Evaluation(int id)
 {
     var Event = _eventRepo.FindByID(id);
     Question qst = new Question();
     qst.EventID = Event.ID;
     return View(qst);
 }
 public ActionResult SaveAttendant(Question question)
 {
     if (ModelState.IsValid)
     {
         var Event = _eventRepo.FindByID(question.EventID);
         _questionRepo.Save(question);
         ViewData["Success"] = "Tack så mycket för din åsikter!";
         return View("Success");
     }
     else
     {
         // there is something wrong with the data values
         ViewData["Error"] = "Alla frågor måste besvaras";
         return RedirectToAction("EvaluationAttendant", new { id = question.EventID });
     }
 }
        public ActionResult Save(Question question)
        {
            if (ModelState.IsValid)
            {
                var Event = _eventRepo.FindByID(question.EventID);

                _questionRepo.Save(question);
                return RedirectToAction("Course", "Course", new { id = Event.PostID });
            }
            else
            {
                // there is something wrong with the data values
                ViewData["Error"] = "Alla frågor måste besvaras";
                return View("Evaluation", question);
            }
        }