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); }
public EsnPostMessageResponse PostMessage(EsnWriteMessageDTO message) { var result = new EsnPostMessageResponse(); try { result.Id = EsnCenter.PostMessage(message); } catch (Exception e) { result = new EsnPostMessageResponse(e); } return(result); }