title: Pass the forms data from view to controller and save to database in asp.net mvc3
body: <p>I have a table in my database and it has a column named title in <code>nvarchar</code> datatype. I want to save the title that user enters in a textbox to table. In my view I used </p>
  
  <pre><code>@using (Html.BeginForm("savetodb", "Advertise", FormMethod.Post, new { enctype = "multipart/form-data" })) { 
      @Html.TextBoxFor(m =&gt; m.AdTitle)
  } 
  </code></pre>
  
  <p>This view is strongly typed view from a ViewModel that has this property </p>
  
  <pre><code>public string AdTitle { get; set; }
  </code></pre>
  
  <p>I know how to save data from controller to database but I don't know how can I access data in my controller(in <code>savetodb()</code> function). Can anybody help me please?
  Thanks</p>