public string Add(FlowScheme obj)
 {
     try
     {
         _app.Add(obj);
     }
     catch (Exception ex)
     {
         Result.Code    = 500;
         Result.Message = ex.Message;
     }
     return(JsonHelper.Instance.Serialize(Result));
 }
        public Response Add(FlowScheme obj)
        {
            var result = new Response();

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

            return(result);
        }