title: Show List and Submit form on same view in MVC
body: <p>I have a class Name Comment as follow</p>
  
  <pre><code>public class Comment
      {
          public int Id { get; set; }
          public string Name { get; set; }
          public string Coment { get; set; }
      }
  </code></pre>
  
  <p>what I'm trying to do , i want to show list of comments and a form to add comment on same view(Index), this is what I have done, so far but I'm unable to get <code>hint</code>, this is my index view</p>
  
  <pre><code>@model IEnumerable&lt;GuestbookEntryApp.Models.Comment&gt;
  &lt;h2&gt;Index&lt;/h2&gt;
  &lt;div id="CommentList"&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;th&gt;Name&lt;/th&gt;
              &lt;th&gt;Comments&lt;/th&gt;
          &lt;/tr&gt;
          @foreach (var obj in Model)
          {
              &lt;tr&gt;
                  &lt;td&gt;@obj.Name&lt;/td&gt;
                  &lt;td&gt;@obj.Coment&lt;/td&gt;
              &lt;/tr&gt;
          }
  
      &lt;/table&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;div id="commentBox"&gt;
   @Html.Partial("~/Views/Comments/_AddComment.cshtml", new ViewDataDictionary { Model = new GuestbookEntryApp.Models.Comment() })
  &lt;/div&gt; 
  </code></pre>
  
  <p>but here i'm unable to get hint <code>@Html.LabelFor(x =&gt; x.Name)</code>
  This is my controller</p>
  
  <pre><code>   public class CommentsController : Controller
  {
      GuestbookContext db = new GuestbookContext(); // my DbContxt Class
      public ActionResult Index()
      {
          IList&lt;Comment&gt; _comment = db.Comments.ToList();
          return View(_comment);
      }
      public PartialViewResult AddComment()
      {
          return PartialView("_AddComment");
      }
      public PartialViewResult AddComment(Comment _comment)
      {
          db.Comments.Add(_comment);
          db.SaveChanges();
          return RedirectToAction("Index");
      }
  }
  </code></pre>
  
  <p>Is there any other way to do this.
  I want like this
  <img src="https://i.stack.imgur.com/8ZmaB.png" alt="enter image description here"></p>