public ActionResult HideOption([DataSourceRequest] DataSourceRequest request, SubjectOptionModel model)
        {
            if (model != null)
            {
                var option = _subjectOptionService.GetOptionById(model.Id);
                if (option != null)
                {
                    _subjectOptionService.Hide(option);
                }
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState));
        }
        public ActionResult CreateOption([DataSourceRequest] DataSourceRequest request, SubjectOptionModel model)
        {
            if (model != null && ModelState.IsValid)
            {
                _subjectOptionService.CreateOption(model.ToEntity());
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState));
        }
        public ActionResult EditOption([DataSourceRequest] DataSourceRequest request, SubjectOptionModel model)
        {
            if (model != null && ModelState.IsValid)
            {
                var option = _subjectOptionService.GetOptionById(model.Id);
                if (option != null)
                {
                    option.ResultType = model.ResultType;
                    option.Content = model.Content;
                    option.ContentExt = model.ContentExt;
                    option.Order = model.Order;

                    _subjectOptionService.UpdateOption(option);
                }
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState));
        }