private void HybridRecommendation()
 {
     DataList articlesList = (DataList)this.Master.FindControl("articlesList");
     RecommendationService recommendation = new RecommendationService();
     articlesList.DataSource = recommendation.GetTopArticles(Convert.ToInt32(User.Identity.Name));
     articlesList.DataBind();
 }
 private void UserQuestionRecommendation()
 {
     DataList questionsList = (DataList)this.Master.FindControl("questionsList");
     RecommendationService recommendation = new RecommendationService();
     questionsList.DataSource = recommendation.ColaborativeFiltering(Convert.ToInt32(User.Identity.Name));
     questionsList.DataBind();
 }
        private void ItemBasedRecommendation()
        {
            DataList articlesList = (DataList)this.Master.FindControl("articlesList");
            RecommendationService recommendation = new RecommendationService();

            //Ukoliko je korisnik prijavljen ukloniti pregledane članke iz preporuke
            int userId = 0;
            if (User.Identity.Name != "")
                userId = Convert.ToInt32(User.Identity.Name);
            articlesList.DataSource = recommendation.GetTopArticleMatches(articleId, userId);
            articlesList.DataBind();
        }
        private void ItemBasedRecommendation()
        {
            DataList questionsList = (DataList)this.Master.FindControl("questionsList");
            RecommendationService recommendation = new RecommendationService();

            //Ukoliko je korisnik prijavljen ukloniti ocijenjena pitanja iz preporuke
            int userId = 0;
            if (User.Identity.Name != "")
                userId = Convert.ToInt32(User.Identity.Name);

            questionsList.DataSource = recommendation.GetTopQuestionsMatches(Int32.Parse(Request.QueryString["id"].ToString()), userId);
            questionsList.DataBind();
        }