[HttpPost, ActionName("Edit")] [ValidateAntiForgeryToken] public ActionResult Edit(int id) { Customers customers = db.Customers.Find(id); if (TryUpdateModel(customers)) /* <- here debug point doesnt go inside*/ { customers.Active = false; db.SaveChanges(); } }
TryUpdateModel
false
ModelState
Errors
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)