コード例 #1
0
        public ActionResult DeleteThesis()
        {
            int    id     = Convert.ToInt32(Request["id"]);
            Thesis thesis = new Thesis();

            thesis.topicId = id;
            bool res = DbOperation.Delete(thesis, "thesis");

            if (res)
            {
                return(Json(new { tip = "success" }));
            }
            else
            {
                return(Json(new { tip = "fault" }));
            }
        }