public Response Update(FlowInstance obj)
        {
            var result = new Response();

            try {
                _app.Update(obj);
            } catch (Exception ex) {
                result.Code    = 500;
                result.Message = ex.InnerException?.Message ?? ex.Message;
            }

            return(result);
        }
 public string Update(FlowInstance obj)
 {
     try
     {
         _app.Update(obj);
     }
     catch (Exception ex)
     {
         Result.Code    = 500;
         Result.Message = ex.InnerException?.Message ?? ex.Message;
     }
     return(JsonHelper.Instance.Serialize(Result));
 }
Ejemplo n.º 3
0
        public void TestUpdate()
        { //测试数据没有任何修改时EF报错的问题
            var instance = _runApp.Get("d73e4412-9c49-4511-a30e-0d2f844afcee");

            _runApp.Update(instance);
        }