Esempio n. 1
0
        public ServiceResult <bool> ReadMessage(ReadMessageIM model)
        {
            bool result = new MessageComponent().ReadMessage(model.Id, this.GetMerchantAccountId());

            return(new ServiceResult <bool>
            {
                Data = result
            });
        }
Esempio n. 2
0
        public ServiceResult <bool> ReadMessage(ReadMessageIM model)
        {
            bool result = false;

            try
            {
                result = MessagesComponent.ReadMessage(model.Id, this.GetUser().Id);
            }
            catch (Exception ex)
            {
                _log.Error(string.Format("ReadMessage:{0}", ex));
            }

            return(new ServiceResult <bool>
            {
                Data = result
            });
        }