//First in C# where you create the controller action method
//to create the method that will populate all content details
//add the following code
public ActionResult Details(int id)
{
var repositoryList = _repository.List();
ViewData["List"] = repositoryList;
return View(_repository.Get(id));
}