コード例 #1
0
 /// <summary>
 /// 消息变为已读
 /// </summary>
 /// <param name="msgid"></param>
 public void Read(ReadMsgReq req)
 {
     UnitWork.Update <SysMessage>(u => u.Id == req.Id, u => new SysMessage
     {
         ToStatus = 1
     });
 }
コード例 #2
0
        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);
        }
コード例 #3
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));
        }