public OperationResultInfo DeleteMessage(MessageReceiveModel messageModel) { try { _messageLogic.DeleteMessage(messageModel); return(new OperationResultInfo() { ErrorInfo = string.Empty, OperationResult = OperationsResults.Successfully, ToListener = ListenerType.ChatsMessagesDeleteListener }); } catch (Exception ex) { return(new OperationResultInfo() { ErrorInfo = ex.Message, OperationResult = OperationsResults.Unsuccessfully, ToListener = ListenerType.ChatsMessagesDeleteListener }); } }
public static bool DeleteMessage(Guid id) { return(_messageLogic.DeleteMessage(id)); }