Exemplo n.º 1
0
 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
         });
     }
 }
Exemplo n.º 2
0
 public static bool DeleteMessage(Guid id)
 {
     return(_messageLogic.DeleteMessage(id));
 }