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);
        }
예제 #2
0
        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));
        }