You need to have a controller action Like
public ActionResult GetProductDetails(int id)
{
var details = _abcService.GetProductDetails(id);
var viewModel = new ProductViewModel
{
product = details
}
return View(viewModel);
}
View Model would go as below
public List<product> products{get; set;}
</product>
Please comment with any doubt you have
Thanks
:)