I want to fill a form with Id and i have made the url in this way
Where as 1 is the Id. And i want to fill my form with the data of patient with Id 1. But this below function is not being called in Controller
public ActionResult Index(int id)
Patient p = new CEntities().Patients.Find(id);
//instead, i am getting into
public ActionResult Index()
I am new bie in ASP MVC, i have no idea in filling a form with any other way, i found a way but it shows my whole object in query string which is insecure. And this above solution is not working.