public ServiceResult <bool> ReadMessage(ReadMessageIM model) { bool result = new MessageComponent().ReadMessage(model.Id, this.GetMerchantAccountId()); return(new ServiceResult <bool> { Data = result }); }
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 }); }