title: Parameter binding of POST action method
body: <p>You can see what <strong>GET Delete</strong> action method passes DDW2File object to view. Is it possible somehow to bind this object back to <strong>ddw2file</strong> parameter of <strong>POST Delete</strong> action method? Now I have <strong>null</strong> value in it.</p>
  
  <p>Code fragment:</p>
  
  <pre><code>public class DDW2FileController : Controller
  {
      ...
  
      public ActionResult Delete(string fileName)
      {
          return View(repository.GetFile(fileName));
      }
  
      [AcceptVerbs(HttpVerbs.Post)]
      public ActionResult Delete(DDW2File ddw2file)
      {
          repository.Delete(file);
          return RedirectToAction("Index");
      }
  }
  
  ...
  
  public class DDW2File
  {
      public string Name { get; set; }
      public long Length { get; set; }
  }
  </code></pre>
  
  <p>Thanks!</p>