/// <summary> /// 用户删除消息 /// </summary> /// <param name="NoticeID">消息id</param> /// <returns></returns> public JsonResult NoticeDel(string NoticeID) { if (NoticeBll.DeleteNotice(Convert.ToInt32(NoticeID))) { return(Json(1, JsonRequestBehavior.AllowGet)); } return(Json(0, JsonRequestBehavior.AllowGet)); }
public IActionResult Delete(int noticeNo) { _noticeBll.DeleteNotice(noticeNo); return(Redirect("Index")); }