/// <summary>
 ///     根据ID删除实体
 /// </summary>
 /// <returns></returns>
 public JsonResult ChangeDeleteQuestionSortByID(int id)
 {
     if (id > 0)
     {
         int count = 0;
         List <tbQuestion> list = EQuestionBL.GetListByQuery(ref count, CurrentTenant.TenantId, id, "", int.MaxValue, 1, 0, 0, null, null);
         if (list.Count() == 0 && ESortBL.GetAllQuestionSortList(CurrentTenant.TenantId).Where(p => p.FatherID == id).Count() == 0)
         {
             return(Json(new { result = 1, content = RetechWing.LanguageResources.Common.DeleteSuccess }, JsonRequestBehavior.AllowGet));
         }
         else
         {
             return(Json(new { result = 0, content = RetechWing.LanguageResources.Exam.Question.message15 }, JsonRequestBehavior.AllowGet));
         }
     }
     else
     {
         return(Json(new { result = 0, content = RetechWing.LanguageResources.Common.DeleteFailed }, JsonRequestBehavior.AllowGet));
     }
 }