Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / PageViewRepository Class / ChooseRecentlyViewedCategoryId Method
The user to filter views by
A list of possible categories to check.
In This Topic
    ChooseRecentlyViewedCategoryId Method (PageViewRepository)
    In This Topic
    Chooses the recently viewed category id using page views from your provided category ids.
    Syntax
    public int ChooseRecentlyViewedCategoryId( 
       int userId,
       List<int> categories
    )

    Parameters

    userId
    The user to filter views by
    categories
    A list of possible categories to check.

    Return Value

    An integer value representing the most recently viewed category id
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also