public Response Read(ReadMsgReq obj) { var result = new Response(); try { _app.Read(obj); } catch (Exception ex) { result.Code = 500; result.Message = ex.InnerException?.Message ?? ex.Message; } return(result); }
public string Read(ReadMsgReq obj) { var result = new Response(); try { _app.Read(obj); } catch (Exception ex) { result.Code = 500; result.Message = ex.InnerException?.Message ?? ex.Message; } return(JsonHelper.Instance.Serialize(result)); }