public JsonResult DeleteButton(Guid id) { JsonResult result = new JsonResult(); try { bool isSuccess = buttonService.DeleteButton(id); log.Info("删除成功"); } catch (Exception e) { log.Error(e.Message); } finally { result = Json(new { msg = "删除成功" }, JsonRequestBehavior.AllowGet); } return(result); }