public ServiceResult <bool> DeleteMessage(DeleteMessageIM model) { bool result = new MessageComponent().DeleteMessage(model.Id, this.GetMerchantAccountId()); return(new ServiceResult <bool> { Data = result }); }
public ServiceResult <bool> DeleteMessage(DeleteMessageIM model) { bool result = false; try { result = MessagesComponent.DeleteMessage(model.Id, this.GetUser().Id); } catch (Exception ex) { _log.Error(string.Format("DeleteMessage:{0}", ex)); } return(new ServiceResult <bool> { Data = result }); }