footnotes/Controllers/MessagesController.cs
/// <summary>
/// POST: api/Messages
/// Receive a message from a user and reply to it
/// </summary>
api/Messages
Receive a message from a user and reply to it
api / Messages Receive a message from a user and reply to it
public async Task<Message> Post([FromBody]Message message)
        {
            if (message.Type == "Message")
            {
                Message replyMessage = null;
                var entityLinkResult = await getEntityLink(message.Text);
                if (entityLinkResult != null & entityLinkResult.Length > 0)
                    replyMessage = message.CreateReplyMessage($"Footnotes: {entityLinkResult}");
                return replyMessage;
            }
            else
            {
                return HandleSystemMessage(message);
            }
        }
public async Task < Message > Post ( [ FromBody ] Message message ) { if ( message . Type == " " ) { Message replyMessage = null ; var entityLinkResult = await getEntityLink ( message . Text ) ; if ( entityLinkResult != null & entityLinkResult . Length > 0 ) replyMessage = message . CreateReplyMessage ( $" Footnotes:  { entityLinkResult } " ) ; return replyMessage ; } else { return HandleSystemMessage ( message ) ; } }
POST: api/Messages
Receive a message from a user and reply to it
POST : api / Messages Receive a message from a user and reply to it
//Set up return message //Step 2: Invoke ELIS through helper method //Step 3: Create our reply  //Step 4: Profit!
Message
[FromBody]