// Get public ActionResult Edit(int id) { SampleRepository r = new SampleRepository(); return(View(r.Details(id))); }