If I understand correctly, you want to see the controller. At first, I think something is wrong with your controller signature. It should be like this:
public ActionResult Edit(int id)
{
var db = new DbContext();
var yourRequestedList=db.Find(id);
yourRequestedList = objectThatWasEdited;
}
I hope this helps you and don't forget to reorganize. My cod is not good practice, you do not install db inside the controller method.
source
share