protected void rep1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "delete") { int id = Convert.ToInt32(e.CommandArgument); artbll.Delete(id); select(); } }
public JsonResult DeleteArticle(int id) { try { BLL_Article.Delete(id); return(Json(new { success = true, message = "Delete Successfully" })); } catch (Exception ex) { return(Json(new { success = false, message = ex.Message })); } }