Example #1
0
        public object Execute(object request)
        {
            List <UserMessage> userMessages = userMessageService.getAllMessageByUserId((int)request);

            foreach (UserMessage u in userMessages)
            {
                Message message = messageService.readById(u.MessageId);
                userMessageService.delete(u);
                messageService.delete(message);
            }
            return(null);
        }
 public object Execute(object request)
 {
     userMessageService.delete((UserMessage)request);
     return(null);
 }