0
나는 내가제품을 클릭 할 때 삽입 방법을 호출하는 방법은 무엇입니까?
nopCommerce_3.20_Source\Libraries\Nop.Services\Catalog\ProductService.cs
public virtual void InsertMostViewProduct(MostViewProduct product)
{
if (product == null)
throw new ArgumentNullException("product");
//insert
_mostviewRepository.Insert(product);
//clear cache
_cacheManager.RemoveByPattern(PRODUCTS_PATTERN_KEY);
//event notification
_eventPublisher.EntityInserted(product);
}
내 질문은 내가,이 메소드를 호출 할 필요가 어떻게 제품을 클릭 할 때이다에 그것을 위해 삽입 방법을 하였다 카테고리 페이지에서 10 가장 많이 본 제품을 표시 할 그 항목은 데이터베이스에 저장합니까?
알려 주시기 바랍니다.