示例#1
0
 public void update()
 {
     _app.Update(new Org
     {
         Id       = "4bcdd85d-662f-42e4-94dc-19e3e98ef4dc",
         Name     = "测试",
         ParentId = "57239263-0176-4ef9-a4b5-3491a04e2c6a"
     });
 }
示例#2
0
 public string Update(Org org)
 {
     try
     {
         _orgApp.Update(org);
     }
     catch (Exception ex)
     {
         Result.Code    = 500;
         Result.Message = ex.Message;
     }
     return(JsonHelper.Instance.Serialize(Result));
 }
示例#3
0
        public Response Update(Org 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(OpenAuth.Repository.Domain.Org org)
 {
     try
     {
         _orgApp.Update(org);
     }
     catch (Exception ex)
     {
         Result.Code    = 500;
         Result.Message = ex.InnerException?.Message ?? ex.Message;
     }
     return(JsonHelper.Instance.Serialize(Result));
 }