Updating record in database (ASP.NET MVC)… trying to understand what’s going in the background

I’m new to ASP.NET MVC. I’ve been following this tutorial/guide:


I have a question regarding updating/editing a record in a database. My project works, and I’m able to edit and see the changes in the database. I just want to know how it’s actually doing it. There’s so many helper methods and magic going on in the background.

VIEW: http://i3.asp.net/media/46612/FF3.PNG?ref=msn4free

 <div class="editor-label"> @Html.LabelFor(model => model.title, "Title") </div> <div class="editor-field"> @Html.EditorFor(model => model.title) @Html.ValidationMessageFor(model => model.title) </div>

which translates to…

 <div class="editor-label"> <label for="title">Title</label> </div> <div class="editor-field"> <input class="text-box single-line" data-val="true" data-val-number="The field title must be a string." data-val-required="The title field is required." id="title" name="title" type="text" value="240" /> <span class="field-validation-valid" data-valmsg-for="title" data-valmsg-replace="true"></span>

I’m calling the controller action Edit(), which is [HttpPost], which passes the a movie object into the view. So, since I’m editing the title of the @model… where is

@Model.title = “whatever I’m entering into the textbox” taking place?