public string Update(Form obj) { try { _app.Update(obj); } catch (Exception ex) { Result.Code = 500; Result.Message = ex.InnerException?.Message ?? ex.Message; } return(JsonHelper.Instance.Serialize(Result)); }
public void Update() { try { var form = _app.FindSingle("048b8074-1a68-4dc4-af15-dbc0914f5745"); var newform = form.MapTo <Form>(); _app.Update(newform); } catch (Exception e) { Console.WriteLine(e.Message); } }
public Response Update(Form obj) { var result = new Response(); try { _app.Update(obj); } catch (Exception ex) { result.Code = 500; result.Message = ex.InnerException?.Message ?? ex.Message; } return(result); }