public void Insert(int BrowsingBehaviorId, int?RelevantId, string UserName, string Url, string SearchTerms, string SessionId, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn)
        {
            BrowsingLog item = new BrowsingLog();

            item.BrowsingBehaviorId = BrowsingBehaviorId;

            item.RelevantId = RelevantId;

            item.UserName = UserName;

            item.Url = Url;

            item.SearchTerms = SearchTerms;

            item.SessionId = SessionId;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;


            item.Save(UserName);
        }
        /// <summary>
        /// Logs the users browsing information, used for site Statistics.
        /// </summary>
        /// <param name="relevantId">The relevant id.</param>
        /// <param name="searchTerm">The search term.</param>
        /// <param name="browsingBehaviour">The browsing behaviour.</param>
        /// <param name="url">The URL.</param>
        /// <param name="sessionId">The session id.</param>
        /// <param name="userName">Name of the user.</param>
        public static void LogBrowsingInfo(int?relevantId, string searchTerm, BrowsingBehaviour browsingBehaviour, string url, string sessionId, string userName)
        {
            //if (SiteSettingCache.GetSiteSettings().CollectBrowsingCategory) {
            BrowsingLog browsingLog = new BrowsingLog();

            browsingLog.BrowsingBehaviorId = (int)browsingBehaviour;
            if (searchTerm != null)
            {
                browsingLog.SearchTerms = searchTerm;
            }
            if (relevantId != null)
            {
                browsingLog.RelevantId = relevantId;
            }
            browsingLog.UserName  = userName;
            browsingLog.Url       = url;
            browsingLog.SessionId = sessionId;
            browsingLog.Save("System");
            //}
        }
 public bool Destroy(object BrowsingLogId)
 {
     return(BrowsingLog.Destroy(BrowsingLogId) == 1);
 }
 public bool Delete(object BrowsingLogId)
 {
     return(BrowsingLog.Delete(BrowsingLogId) == 1);
 }