/// <summary> /// 删除试题 /// </summary> /// <param name="id"></param> /// <returns></returns> public int Delete(string id) { var result = question.Delete(id); Users us = (Users)Session["User"]; if (result > 0) { logs.Add(us.ID, "删除试题", 1); } else { logs.Add(us.ID, "删除试题", 0); } return(result); }