public ActionResult DelActioninfo() { var strId = Convert.ToInt32(Request["strId"]); var temp = ActionInfoService.LoadEntities(x => x.ID == strId).FirstOrDefault(); ActionInfoService.DeleteEntity(temp); return(Json(new { ret = "ok" }, JsonRequestBehavior.AllowGet)); }