Ejemplo n.º 1
0
        public EsnPostMessageResponse PostComment(Guid messageId, EsnWriteMessageDTO comment)
        {
            var result = new EsnPostMessageResponse();

            try {
                result.Id = EsnCenter.PostComment(messageId, comment);
            } catch (Exception e) {
                result = new EsnPostMessageResponse(e);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public EsnPostMessageResponse PostMessage(EsnWriteMessageDTO message)
        {
            var result = new EsnPostMessageResponse();

            try {
                result.Id = EsnCenter.PostMessage(message);
            } catch (Exception e) {
                result = new EsnPostMessageResponse(e);
            }
            return(result);
        }