public ResultClass <int> DelEntity(string keyValue) { ResultClass <int> _ret = new ResultClass <int>(); OrderApp bll = new OrderApp(); try { _ret = bll.DeleteForm(keyValue); }catch (Exception ex) { _ret.ErrorMessage = ex.Message; } finally { bll.Dispose(); } return(_ret); }
public ActionResult DeleteForm(string keyValue) { deviceApp.DeleteForm(keyValue); return(Success("删除成功。")); }