public JsonResult Delete(int id) { var result = ButtonService.DeleteById(id) ? SuccessTip("删除成功") : ErrorTip("删除失败"); return(Json(result, JsonRequestBehavior.AllowGet)); }
public JsonResult Delete(int id) { var result = ButtonService.DeleteById(id) ? SuccessTip("删除成功") : ErrorTip("删除失败"); return(Json(result)); }