public ActionResult RemoveCode(long id) { try { dalCode.Delete(id); return(this.JsonFormat(new ExtResult { success = true, msg = "删除成功" })); } catch (Exception ex) { return(this.JsonFormat(new ExtResult { success = false, msg = "删除失败" + ex.Message })); } }
/// <summary> /// 删除一个实体 /// </summary> /// <param name="_entity"></param> /// <returns></returns> public int Delete(int code_id) { return(dal.Delete(code_id)); }