示例#1
0
        public JsonResult GetRecordId(int userId, int roomId, int messageId)
        {
            //int? recordId = -1;
            GetRecordIdBE wGetRecordId          = new GetRecordIdBE();
            int?          chatRoomStatusFromEtl = null;

            try
            {
                wGetRecordId = EpironChatDAC.GetRecordId(messageId, out chatRoomStatusFromEtl);
                if (wGetRecordId.RecordId != null)
                {
                    EpironChatBC.ChatRoom_UpdateStatus(roomId, wGetRecordId.RecordId.Value, WebChat.Common.Enumerations.ChatRoomStatus.Active);
                }

                return(Json(new { Result = "OK", recordId = wGetRecordId.RecordId, userName = wGetRecordId.UserName }));
            }
            catch (Exception ex)
            {
                Helper.Log(ex.Message);
                return(Json(new { Result = "ERROR", Message = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex) }));
            }
        }