public IViewComponentResult Invoke() { return(View(new PopularProductListViewModel { popularProducts = _popularProductRepository.GetAll() }));//Sizin için seçtiklerimiz kısmı ne kadar ürün koyduysa o kadar gösterilir }
public List <PopularProduct> GetAll() { return(_popularProductRepository.GetAll()); }