HI i am new to mvc so if anyone can help me will be great basically i just want to display a partiular item details, my code
private sneakerEntities _sneaker_categoryDataModel = new sneaker_info.Models.sneakerEntities();
public ActionResult Index()
{
IList<sneaker> Releases = _sneaker_categoryDataModel.sneakers.ToList<sneaker_info.Models.sneaker>();
return View("Releases", Releases);
}
public ActionResult Details (int id)
{
return View();
}
Anonymous User
10-Nov-2014You need to find it from Repository and display in your strongly typed view
In Details.cshtml
@model Sneaker
//all view related code