Hello,
I am currently working on the "CustomerController" , in this method Im writting I need the name ( the title) of the product the current customer is visiting in the product details page , how can I get it in a string variable ?
[NopHttpsRequirement(SslRequirement.No)]
public ActionResult RecentlyViewedProducts()
{
if (!_catalogSettings.RecentlyViewedProductsEnabled)
return Content("");
var products = _recentlyViewedProductsService.GetRecentlyViewedProducts(_catalogSettings.RecentlyViewedProductsNumber);
var model = new List<ProductOverviewModel>();
model.AddRange(PrepareProductOverviewModels(products));
return View(model);
}