title: Facebook Messenger API implementation in c# asp.net mvc app
body: <p>In node.js implementation like </p>
  
  <pre><code>app.post('/webhook/', function(req, res) {  
  console.log("message received " + req.body);
  if(!req.body){
      console.log("no request body found");
      res.sendStatus(200);
      return;
  }
  
  messaging_events = req.body.entry[0].messaging;
  for (i = 0; i &lt; messaging_events.length; i++) {
      event = req.body.entry[0].messaging[i];
      sender = event.sender.id;
      console.log("sender " + event.sender + ", message " + event.message.text);
      if (event.message &amp;&amp; event.message.text) {
          text = event.message.text;
          // Handle a text message from this sender
          sendTextMessage(sender, "Text received, echo: "+ text.substring(0, 200));
      }
  }
  
  res.sendStatus(200);
  });
  </code></pre>
  
  <p>How to implement it in .net mvc application. 
  especially how to implement this line </p>
  
  <pre><code>app.post('/webhook/', function(req, res)
  </code></pre>
  
  <p>in controller in mvc.</p>