public ActionResult MessageBody(int messageId = invalidId) { if (messageId == invalidId) { return(NoId()); } var msg = messageQueries.Get(messageId, null); var body = MarkdownHelper.TranformMarkdown(msg.Body); return(Content(body)); }
public ActionResult MessageBody(int messageId = invalidId) { if (messageId == invalidId) { return(NoId()); } var msg = messageQueries.Get(messageId, null); //return PartialView("Message", messageQueries.Get(messageId, new GravatarUserIconFactory(20))); //return LowercaseJson(msg); var body = MarkdownHelper.TranformMarkdown(msg.Body); return(Content(body)); }
private UserMessageContract CallGet(int id) { return(queries.Get(id, null)); }
public UserMessageContract GetMessage(int messageId) => messageQueries.Get(messageId, userIconFactory);
public UserMessageContract GetMessage(int messageId) { return(messageQueries.Get(messageId, userIconFactory)); }