public ActionResult Edit(EditViewModel editViewModel)
        {
            if (editViewModel == null)
            {
                throw new HttpException(400, "Bad Request");
            }

            var questionGroup = QuestionGroupService.FindById(editViewModel.QuestionGroupId);
            if (questionGroup == null)
            {
                throw new HttpException(404, "Not Found");
            }

            if (!ModelState.IsValid)
            {
                return View(editViewModel);
            }

            questionGroup.Name = editViewModel.Name;
            questionGroup.Description = editViewModel.Description;
            questionGroup.Priority = !String.IsNullOrEmpty(editViewModel.Priority) ? Int32.Parse(editViewModel.Priority) : 0;

            QuestionGroupService.UpdateQuestionGroup(questionGroup);
            TempData["QuestionGroupId"] = questionGroup.QuestionGroupId;
            TempData["QuestionGroupName"] = questionGroup.Name;
            TempData["Message"] = QuestionGroupsMessage.EditSuccess;
            return Redirect(Url.Content("~/feedback/cruise/questiongroups/index"));
        }
        public ActionResult Edit(int? id)
        {
            if (id == null)
            {
                throw new HttpException(400, "Bad Request");
            }

            var questionGroup = QuestionGroupService.FindById(id.Value);
            if (questionGroup == null)
            {
                throw new HttpException(404, "Not Found");
            }

            var editViewModel = new EditViewModel()
            {
                QuestionGroupId = questionGroup.QuestionGroupId,
                Name = questionGroup.Name,
                Description = questionGroup.Description,
                Priority = questionGroup.Priority.ToString()
            };
            return View("~/views/feedback/cruise/questiongroups/edit.cshtml", editViewModel);
        }