title: ASP.NET MVC C# add value into database
body: <p>I am having problems inserting values (strings) into a database in ASP.NET MVC / C#. I am stuck because I don't know what to do.</p>
  
  <pre><code>@using (Html.BeginForm("Index", "Upload", FormMethod.Post))
              {
                  @Html.Label("Name:")
                  @Html.TextBox("name", null, new { @class = "form-control"})
  
                  @Html.Label("Surname:")
                  @Html.TextBox("surname", null, new { @class = "form-control" })
  
                  @Html.Label("Email:")
                  @Html.TextBox("email", null, new { @class = "form-control" })
  
                  @Html.Label("Description:")
                  @Html.TextArea("description", null, new { @class = "form-control" })
  
                  &lt;br/&gt;
                  &lt;input type="submit" class="btn btn-primary" value="Send" /&gt;
              }
  </code></pre>
  
  <p>My model is empty ... :-(</p>
  
  <pre><code>namespace GikStore.Models {
     public class ContactModels
     {
     }
  }
  </code></pre>
  
  <p>Do I have to do anything with the controller?</p>