title: View is not displaying returned data from controller in MVC
body: <p>I am sending data through HttpClient (Json) from console app to web app, everything is working well but the only issue Iam facing that data sent from controller to view is not displayed. I debugged the program and i can see that data are returned to the view. Following are the codes:</p>
  <p>Constroller:</p>
  <pre><code>using ( var db = new MessageDBContext())
  {
      try
      {
          db.Messages.Add(model);
          db.SaveChanges();
      }
      catch (DbEntityValidationException e)
      {
          Debug.WriteLine(&quot;Saving Messages into db Error 1: &quot; + e.EntityValidationErrors);
      }
  }
  return View(model);
  </code></pre>
  <p>Controller Debugg:</p>
  <p><a href="https://i.stack.imgur.com/Ewc8d.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ewc8d.jpg" alt="Debugg controller" /></a></p>
  <p>and here is the view code:</p>
  <pre><code>&lt;table class=&quot;table table-striped&quot;&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Message&lt;/th&gt;
              &lt;th&gt;Time&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          @if (Model != null)
          {
              &lt;tr&gt;
                  &lt;td&gt;
                      @Html.Display(@Model.message)
                  &lt;/td&gt;
                  &lt;td&gt;
                      @Html.Display(@Model.time)
                  &lt;/td&gt;
              &lt;/tr&gt;
          }
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  <p>View Debugg:</p>
  <p><a href="https://i.stack.imgur.com/H9Cte.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H9Cte.jpg" alt="View Debugg" /></a></p>
  <p>So why the data are not displayed to the html view!?</p>