Hello everybody
In this example how UpdateModel method fill person instance with formValues? I think UpdateModel use reflection while filling person by formValues but how updatemodel catch formValues parameter ?
[HttpPost]
public ActionResult Edit(int ID,FormCollection formValues)
{
Person person= db.PersonSet.Single(p => p.PersonID == ID);
UpdateModel(person);
db.SaveChanges();
return RedirectToAction("Details", new { ID = person.PersonID });
}