コード例 #1
0
        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);
        }
コード例 #2
0
 public ActionResult DeleteForm(string keyValue)
 {
     deviceApp.DeleteForm(keyValue);
     return(Success("删除成功。"));
 }