title: How to bind the form data to the model in mvc3
body: <p>I'm trying to make an Edit in mvc 3</p>
  
  <p>Here is the code I have</p>
  
  <pre><code>public ActionResult Edit(int id, FormCollection collection)
          { 
              if (ModelState.IsValid)
              {
                  try
                  {
                      sea loadedSea = BskDB.loadSea(id);
  
                      loadedBskSeason.UpdateFrom()//Error Here
  
                      return RedirectToAction("Index");
                  }
                  catch
                  {
                      return View("EditSea");
                  }
              }
              return View("EditSea");
          }
  </code></pre>
  
  <p>This <a href="http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-mvc-framework-part-4-handling-form-edit-and-post-scenarios.aspx" rel="nofollow">article</a> says that the</p>
  
  <blockquote>
    <p>"UpdateFrom" extension method to
    automatically populate our product
    object from the request.</p>
  </blockquote>
  
  <p>But in my case it gives me a compilation error - <em>No extension method can be found</em></p>
  
  <p>In this other <a href="http://forums.asp.net/p/1231619/2227810.aspx" rel="nofollow">article</a> it says that the UpdateFrom has been change to </p>
  
  <pre><code>loadedSea.UpdateFrom(Request.Form);
  
  to:
  
  BindingHelperExtensions.UpdateFrom(loadedSea, Request.Form);
  </code></pre>
  
  <p>But also this doesn't work.</p>
  
  <p>Any examples on how to do bindings from a collection to a model in MVC 3?</p>
  
  <p>Thanks</p>