title: How to save change with MVC 2 en EF 4?
body: <p>I'm using MVC 2 with EF4. Creating or deleting objects works but update doesn't.
  I have read lot and lot tutorials / questions on StackOverflow, but I haven't found a real WORKING code to use in my "Edit" method.</p>
  
  <pre><code>    [HttpPost]
      public ActionResult Edit(int id, Account model)
      {
          try
          {
              Account accountEdited = accountRepository.Get(id);
  
              // Working code to update "accountEdited" with "model"'s values ???
  
              accountRepository.Save();
  
              return RedirectToAction("Details", new { id = id });
          }
          catch (Exception ex)
          {
              return View();
          }
      }
  </code></pre>
  
  <p><strong>I'm using EntityFramework with WCF Data Service</strong></p>